You are here

function panels_everywhere_theme in Panels Everywhere 7

Same name and namespace in other branches
  1. 6 panels_everywhere.module \panels_everywhere_theme()

Implement hook_theme()

File

./panels_everywhere.module, line 41
panels_everywhere.module

Code

function panels_everywhere_theme() {
  $theme = array();
  $path = drupal_get_path('module', 'panels_everywhere') . '/theme';
  $base = array(
    'file' => 'theme.inc',
    'path' => $path,
  );
  $theme['pane_header'] = array(
    'variables' => array(),
    'template' => 'pane-header',
  ) + $base;
  $theme['pane_messages'] = array(
    'variables' => array(),
    'template' => 'pane-messages',
  ) + $base;
  $theme['pane_navigation'] = array(
    'variables' => array(),
    'template' => 'pane-navigation',
  ) + $base;
  $theme['head_title'] = array(
    'arguments' => array(),
  ) + $base;

  // Our alternative to theme('page').
  $theme['panels_everywhere_page'] = array(
    'render element' => 'page',
  ) + $base;
  return $theme;
}