You are here

function menu_block_set_title in Menu Block 7.3

Same name and namespace in other branches
  1. 6.2 menu_block.module \menu_block_set_title()
  2. 7.2 menu_block.module \menu_block_set_title()

Sets the menu item to use for the tree's title.

Parameters

array|string $item: The menu item (an array) or the menu item's title as a string.

Return value

array|string The saved title value.

4 calls to menu_block_set_title()
menu_block_get_title in ./menu_block.module
Retrieves the menu item to use for the tree's title.
menu_tree_build in ./menu_block.module
Build a menu tree based on the provided configuration.
menu_tree_prune_tree in ./menu_block.module
Prune a tree so that it begins at the specified level.
_menu_tree_prune_active_tree in ./menu_block.follow.inc
Prune a tree so that it begins at the active menu item.
1 string reference to 'menu_block_set_title'
menu_tree_build in ./menu_block.module
Build a menu tree based on the provided configuration.

File

./menu_block.module, line 594
Provides configurable blocks of menu items.

Code

function menu_block_set_title($item = NULL) {
  $menu_item =& drupal_static(__FUNCTION__, '');

  // Save the menu item.
  if (!is_null($item)) {
    $menu_item = $item;
  }
  return $menu_item;
}