You are here

function webmaster_menu_create_menu_item in Webmaster menu 7

Helper to create a data structure representing a menu item in the dropdown.

Parameters

string $title: The title of the menu item.

string $href: The link of the menu item.

array $classes: CSS classes that will be put on the menu item (with default theming, these are put on the <li> tag).

2 calls to webmaster_menu_create_menu_item()
webmaster_menu_create_datastructure_from_tree in ./webmaster_menu.module
Build a datastructure suitable for theme_webmaster_menu_tree.
webmaster_menu_output in ./webmaster_menu.module
Create the webmaster menu.

File

./webmaster_menu.module, line 136
Display a dropdown menu at the top of the window.

Code

function webmaster_menu_create_menu_item($title, $href, $classes = array(), $localized_options = array()) {
  return array(
    'title' => $title,
    'href' => $href,
    'classes' => $classes,
    'localized_options' => $localized_options,
    'children' => NULL,
  );
}