You are here

function popup_ui_theme in Popup 6.x

Same name and namespace in other branches
  1. 7.x modules/popup_ui/popup_ui.module \popup_ui_theme()

Implementation of hook_theme

File

modules/popup_ui/popup_ui.module, line 148

Code

function popup_ui_theme() {
  module_load_include('inc', 'popup_ui', 'includes/popup_ui.admin');
  $formatters = _popup_ui_formatter_settings();
  $theme = array();
  foreach ($formatters as $label => $formatter) {
    $theme['popup_ui_formatter_' . str_replace(' ', '_', $label)] = array(
      'function' => 'theme_popup_field',
      'arguments' => array(
        'element' => NULL,
      ),
    );
  }
  $theme['popup_ui_form_formatters'] = array(
    'arguments' => array(
      'form' => array(),
    ),
  );
  $theme['table'] = array(
    'arguments' => array(
      'header' => array(),
      'rows' => array(),
      'attributes' => array(),
      'caption' => NULL,
    ),
    'function' => 'popup_ui_table',
  );
  return $theme;
}