You are here

function menu_block_menu_tree_content_type_admin_title in Menu Block 6.2

Same name and namespace in other branches
  1. 7.3 plugins/content_types/menu_tree/menu_tree.inc \menu_block_menu_tree_content_type_admin_title()
  2. 7.2 plugins/content_types/menu_tree/menu_tree.inc \menu_block_menu_tree_content_type_admin_title()

Return the tree's title with an admin-sensitive prefix.

File

plugins/content_types/menu_tree/menu_tree.inc, line 141
Provides ctools integration for "Menu block" trees.

Code

function menu_block_menu_tree_content_type_admin_title($subtype, $conf, $context = NULL) {
  if (!empty($conf['admin_title'])) {
    $output = filter_xss_admin($conf['admin_title']);
  }
  else {

    // Build the menu tree.
    module_load_include('inc', 'menu_block', 'menu_block.admin');
    $output = _menu_block_format_title($conf);
  }
  return $output;
}