You are here

function menu_block_set_title in Menu Block 6.2

Same name and namespace in other branches
  1. 7.3 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

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

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.

File

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

Code

function menu_block_set_title($item = NULL) {
  static $menu_item;

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