[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/menu_block/ -> menu_block.module (summary)

(no description)

File Size: 661 lines (22 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 20 functions

  menu_block_menu()
  menu_block_help()
  menu_block_theme()
  menu_block_ctools_plugin_directory()
  template_preprocess_menu_block_wrapper()
  menu_block_form_block_admin_display_form_alter()
  menu_block_get_all_menus()
  menu_block_block()
  menu_block_get_config()
  _menu_block_block_view()
  menu_tree_build()
  menu_block_get_title()
  menu_block_set_title()
  menu_tree_add_active_path()
  menu_tree_trim_active_path()
  menu_tree_sort_active_path()
  menu_tree_prune_tree()
  menu_tree_prune_active_tree()
  menu_tree_depth_trim()
  menu_block_tree_output()

Functions
Functions that are not part of a class:

menu_block_menu()   X-Ref
Implements hook_menu().


menu_block_help($path, $arg)   X-Ref
Implements hook_help().


menu_block_theme(&$existing, $type, $theme, $path)   X-Ref
Implements hook_theme().


menu_block_ctools_plugin_directory($module, $plugin)   X-Ref
Implements hook_ctools_plugin_directory().


template_preprocess_menu_block_wrapper(&$variables)   X-Ref
Process variables for menu-block-wrapper.tpl.php.


menu_block_form_block_admin_display_form_alter(&$form, $form_state)   X-Ref
Alters the block admin form to add delete links next to menu blocks.


menu_block_get_all_menus()   X-Ref
Returns a list of menu names implemented by all modules.

return:

menu_block_block($op = 'list', $delta = NULL, $edit = NULL)   X-Ref
Implements hook_block().


menu_block_get_config($delta = NULL)   X-Ref
Returns the configuration for the requested block delta.

param: $delta
return:

_menu_block_block_view($delta)   X-Ref
Returns the 'view' $op info for hook_block().

param: $delta

menu_tree_build($config)   X-Ref
Build a menu tree based on the provided configuration.

param: $config
return:

menu_block_get_title($render_title_as_link = TRUE, $config = array()   X-Ref
Retrieves the menu item to use for the tree's title.

param: $render_title_as_link
return:

menu_block_set_title($item = NULL)   X-Ref
Sets the menu item to use for the tree's title.

param: $item

menu_tree_add_active_path(&$tree)   X-Ref
Add the active trail indicators into the tree.

The data returned by menu_tree_page_data() has link['in_active_trail'] set to
TRUE for each menu item in the active trail. The data returned from
menu_tree_all_data() does not contain the active trail indicators. This is a
helper function that adds it back in.

param: $tree
return:

menu_tree_trim_active_path(&$tree)   X-Ref
Trim everything but the active trail in the tree.

param: $tree
return:

menu_tree_sort_active_path(&$tree)   X-Ref
Sort the active trail to the top of the tree.

param: $tree
return:

menu_tree_prune_tree(&$tree, $level, $parent_item = FALSE)   X-Ref
Prune a tree so that it begins at the specified level.

This function will follow the active menu trail to the specified level.

param: $tree
param: $level
param: $parent_item
return:

menu_tree_prune_active_tree(&$tree, $level)   X-Ref
Prune a tree so that it begins at the active menu item.

param: $tree
param: $level
return:

menu_tree_depth_trim(&$tree, $depth_limit)   X-Ref
Prune a tree so it does not extend beyond the specified depth limit.

param: $tree
param: $depth_limit
return:

menu_block_tree_output(&$tree, $config = array()   X-Ref
Returns a rendered menu tree.

This is an optimized version of menu_tree_output() with additional classes
added to the output.

param: $tree
return:



Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7