You are here

function popup_theme in Popup 7

Same name and namespace in other branches
  1. 7.x popup.module \popup_theme()
  2. 6.x popup.module \popup_theme()

Implementation of hook_theme

File

./popup.module, line 174

Code

function popup_theme() {
  module_load_include('inc', 'popup', 'includes/popup.theme');
  module_load_include('inc', 'popup', 'includes/popup.util');
  $styles = _popup_styles();
  $theme = _popup_theme_array();
  foreach ($styles as $style => $path) {
    $theme += _popup_theme_array(_popup_title_to_key($style), $path);
  }
  $theme += array(
    'popup_ahah_placeholder' => array(
      'variables' => array(
        'type' => '',
        'attributes' => array(),
      ),
      'file' => 'includes/popup.theme.inc',
    ),
  );
  return $theme;
}