You are here

function og_menu_theme in Organic Groups Menu (OG Menu) 8

Same name and namespace in other branches
  1. 6.2 og_menu.module \og_menu_theme()
  2. 6 og_menu.module \og_menu_theme()
  3. 7.3 og_menu.module \og_menu_theme()
  4. 7.2 og_menu.module \og_menu_theme()

Implements hook_theme().

File

./og_menu.module, line 23
Main functions and hook implementations of the og_menu module.

Code

function og_menu_theme() {
  $theme = [];
  $theme['ogmenu_instance'] = [
    'render element' => 'elements',
    'file' => 'ogmenu_instance.page.inc',
    'template' => 'ogmenu_instance',
  ];
  $theme['ogmenu_instance_content_add_list'] = [
    'render element' => 'content',
    'variables' => [
      'content' => NULL,
    ],
    'file' => 'ogmenu_instance.page.inc',
  ];
  return $theme;
}