Function __global->save_add_menu_item_from_post

Definitions

sources/menus2.php

  • Add a menu item from details in POST.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$menu_id ID_TEXT required parameter N/A N/A The name of the menu the item is on
$id integer required parameter N/A N/A The ID of the menu item (i.e. what it is referenced as in POST)
$ids array required parameter N/A N/A The map of IDs on the menu (ID=>parent)
$parent ?integer required parameter N/A N/A The ID of the parent branch (null: no parent)
$old_menu_bits array required parameter N/A N/A The map of menu id=>string content language string IDs employed by items before the edit
$order integer required parameter N/A N/A The order this branch has in the editor (and due to linearly moving through, the number of branches shown assembled ready)