You are here

function menu_block_theme in Menu Block 7.3

Same name and namespace in other branches
  1. 6.2 menu_block.module \menu_block_theme()
  2. 7.2 menu_block.module \menu_block_theme()

Implements hook_theme().

File

./menu_block.module, line 121
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_link']['pattern'] = 'menu_link__';
  return array(
    'menu_block_wrapper' => array(
      'template' => 'menu-block-wrapper',
      'variables' => array(
        'content' => array(),
        'config' => array(),
        'delta' => NULL,
      ),
      'pattern' => 'menu_block_wrapper__',
    ),
    'menu_block_menu_order' => array(
      'render element' => 'element',
      'file' => 'menu_block.admin.inc',
    ),
  );
}