function menu_block_theme in Menu Block 6.2
Same name and namespace in other branches
- 7.3 menu_block.module \menu_block_theme()
- 7.2 menu_block.module \menu_block_theme()
Implements hook_theme().
File
- ./
menu_block.module, line 65 - Provides configurable blocks of menu items.
Code
function menu_block_theme(&$existing, $type, $theme, $path) {
// Add theme hook suggestion patterns for the core theme functions used in
// this module. We can't add them during hook_theme_registry_alter() because
// we will already have missed the opportunity for the theme engine's
// theme_hook() to process the pattern. And we can't run the pattern ourselves
// because we aren't given the type, theme and path in that hook.
$existing['menu_tree']['pattern'] = 'menu_tree__';
$existing['menu_item']['pattern'] = 'menu_item__';
$existing['menu_item_link']['pattern'] = 'menu_item_link__';
return array(
'menu_block_wrapper' => array(
'template' => 'menu-block-wrapper',
'arguments' => array(
'content' => NULL,
'settings' => NULL,
'delta' => NULL,
),
'pattern' => 'menu_block_wrapper__',
),
'menu_block_menu_order' => array(
'arguments' => array(
'element' => NULL,
),
'file' => 'menu_block.admin.inc',
),
);
}