Function __global->edit_menu_item

Definitions

sources/menus2.php

  • Edit a menu item.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$id AUTO_LINK No No required parameter N/A N/A The ID of the menu item to edit
$menu_id SHORT_TEXT No No required parameter N/A N/A The name of the menu to add the item to
$order integer No No required parameter N/A N/A The relative order of this item on the menu
$parent ?AUTO_LINK No No required parameter N/A N/A The menu item ID of the parent branch of the menu item (null: is on root)
$caption SHORT_TEXT No No required parameter N/A N/A The caption
$url SHORT_TEXT No No required parameter N/A N/A The URL (in entry point form)
$check_permissions BINARY No No required parameter N/A N/A Whether people who may not view the entry point do not see the link
$page_only SHORT_TEXT No No required parameter N/A N/A Match-keys to identify what pages the item is shown on
$expanded BINARY No No required parameter N/A N/A Whether it is an expanded branch
$new_window BINARY No No required parameter N/A N/A Whether the link will open in a new window
$caption_long SHORT_TEXT No No required parameter N/A N/A The tooltip (blank: none)
$theme_image_code ID_TEXT No No required parameter N/A N/A The theme image code
$include_sitemap SHORT_INTEGER No No required parameter N/A N/A An INCLUDE_SITEMAP_* constant

Preview

Code (PHP)

/**
 * Edit a menu item.
 *
 * @param  AUTO_LINK $id The ID of the menu item to edit
 * @param  SHORT_TEXT $menu_id The name of the menu to add the item to
 * @param  integer $order The relative order of this item on the menu
 * @param  ?AUTO_LINK $parent The menu item ID of the parent branch of the menu item (null: is on root)
 * @param  SHORT_TEXT $caption The caption
 * @param  SHORT_TEXT $url The URL (in entry point form)
 * @param  BINARY $check_permissions Whether people who may not view the entry point do not see the link
 * @param  SHORT_TEXT $page_only Match-keys to identify what pages the item is shown on
 * @param  BINARY $expanded Whether it is an expanded branch
 * @param  BINARY $new_window Whether the link will open in a new window
 * @param  SHORT_TEXT $caption_long The tooltip (blank: none)
 * @param  ID_TEXT $theme_image_code The theme image code
 * @param  SHORT_INTEGER $include_sitemap An INCLUDE_SITEMAP_* constant
 */

function edit_menu_item(int $id, string $menu_id, int $order, ?int $parent, string $caption, string $url, int $check_permissions, string $page_only, int $expanded, int $new_window, string $caption_long, string $theme_image_code, int $include_sitemap)