[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

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

(no description)

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

Defines 15 functions

  admin_menu_help()
  admin_menu_perm()
  admin_menu_theme()
  admin_menu_menu()
  admin_menu_init()
  admin_menu_suppress()
  admin_menu_footer()
  admin_menu_tree_output()
  admin_menu_item_link()
  theme_admin_menu_item()
  admin_menu_form_devel_admin_settings_alter()
  admin_menu_enable()
  admin_menu_menu_alter()
  admin_menu_translated_menu_link_alter()
  theme_admin_menu_icon()

Functions
Functions that are not part of a class:

admin_menu_help($path, $arg)   X-Ref
Implementation of hook_help().


admin_menu_perm()   X-Ref
Implementation of hook_perm().


admin_menu_theme()   X-Ref
Implementation of hook_theme().


admin_menu_menu()   X-Ref
Implementation of hook_menu().


admin_menu_init()   X-Ref
Implementation of hook_init().

We can't move this into admin_menu_footer(), because PHP-only based themes
like chameleon load and output scripts and stylesheets in front of
theme_closure(), so we ensure Admin menu's styles and scripts are loaded on
all pages via hook_init().

admin_menu_suppress($set = TRUE)   X-Ref
Suppress display of administration menu.

This function should be called from within another module's page callback
(preferably using module_invoke()) when the menu should not be displayed.
This is useful for modules that implement popup pages or other special
pages where the menu would be distracting or break the layout.

param: $set

admin_menu_footer($main = 0)   X-Ref
Implementation of hook_footer().

Admin menu was previously output via hook_block(), but suffered from
theme-specific stylesheets that may be applied to layout blocks. We now
output Admin menu in the footer to circumvent this.


admin_menu_tree_output($tree)   X-Ref
Returns a rendered menu tree.

param: $tree
return: string

admin_menu_item_link($link)   X-Ref
High-performance implementation of theme_menu_item_link().

This saves us a theme() call and does only the absolute minimum to get
the admin menu links rendered.

theme_admin_menu_item($link, $has_children, $menu = '', $in_active_trail = FALSE, $extra_class = NULL)   X-Ref
Generate the HTML output for a single menu item and submenu.

param: string $link
param: bool $has_children
param: string $menu
param: bool $in_active_trail
param: string $extra_class

admin_menu_form_devel_admin_settings_alter(&$form, $form_state)   X-Ref
Implementation of hook_form_[form_id]_alter().

Extends Devel module with Administration Menu developer settings.

admin_menu_enable()   X-Ref
Implementation of hook_enable().


admin_menu_menu_alter()   X-Ref
Implementation of hook_menu_alter().


admin_menu_translated_menu_link_alter(&$item, $map)   X-Ref
Implementation of hook_translated_menu_link_alter().

Here is where we make changes to links that need dynamic information such
as the current page path or the number of users.

theme_admin_menu_icon()   X-Ref
Render an icon to display in the Administration Menu.




Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7