Add a menu item from details in POST.
void
add_menu_item
(ID_TEXT $menu, integer $id, array &$ids, ?integer $parent, array &$old_menu_bits, integer &$order)
-
ID_TEXT
$menu: The name of the menu the item is on
-
integer
$id: The ID of the menu item (i.e. what it is referenced as in POST)
-
array
&$ids: The map of IDs on the menu (ID=>parent)
-
?integer
$parent: The ID of the parent branch (NULL: no parent)
-
array
&$old_menu_bits: The map of menu id=>string language IDs employed by items before the edit
-
integer
&$order: The order this branch has in the editor (and due to linearly moving through, the number of branches shown assembled ready)
The UI to edit a menu.
tempcode
edit_menu
()
Standard modular entry-point finder function.
?array
get_entry_points
()
The UI to choose a menu to edit / create a new menu.
tempcode
get_menu_name
()
Standard modular info function.
?array
info
()
Standard modular install function.
void
install
([?integer $upgrade_from = NULL], [?integer $upgrade_from_hack = NULL])
-
?integer
$upgrade_from: What version we're upgrading from (NULL: new install)
-
?integer
$upgrade_from_hack: What hack version we're upgrading from (NULL: new-install/not-upgrading-from-a-hacked-version)
Show a branch-editor of the menu editor.
tempcode
menu_branch
(AUTO_LINK $id, integer $branch, integer &$order, boolean $clickable_sections, array $menu_items)
-
AUTO_LINK
$id: The ID of the branch we are displaying items for
-
integer
$branch: The parent branch holding the branch
-
integer
&$order: The order this branch has in the editor (and due to linearly moving through, the number of branches shown assembled ready)
-
boolean
$clickable_sections: Whether childed branches themselves can have URLs (etc)
-
array
$menu_items: All rows on the menu
Standard modular run function.
tempcode
run
()
Standard modular uninstall function.
void
uninstall
()
The actualiser to edit a menu.
tempcode
_edit_menu
()