You are here

function mmenu_theme in Mobile sliding menu 7

Same name and namespace in other branches
  1. 8 mmenu.module \mmenu_theme()
  2. 7.3 mmenu.module \mmenu_theme()
  3. 7.2 mmenu.module \mmenu_theme()

Implements hook_theme().

File

./mmenu.module, line 42
Primarily Drupal hooks and global API functions to manipulate mmenus.

Code

function mmenu_theme() {
  $module_path = drupal_get_path('module', 'mmenu');
  return array(
    'mmenu' => array(
      'render element' => 'elements',
      'template' => 'mmenu',
      'path' => $module_path . '/tpl',
    ),
    'mmenu_tree' => array(
      'variables' => array(
        'tree' => NULL,
        'reset' => FALSE,
      ),
    ),
  );
}