You are here

function webform_chart_theme in Webform Chart 7

Same name and namespace in other branches
  1. 7.2 webform_chart.module \webform_chart_theme()

Implements hook_theme().

File

./webform_chart.module, line 234
webform_chart.module

Code

function webform_chart_theme() {
  $theme = array(
    // Theme the result page.
    'webform_chart_page' => array(
      'variables' => array(
        'node' => NULL,
        'data' => NULL,
        'sids' => array(),
        'component' => NULL,
      ),
      'template' => 'templates/webform-chart-page',
    ),
    'webform_chart_items' => array(
      'variables' => array(
        'raw_items' => NULL,
        'configs' => NULL,
      ),
      'template' => 'templates/webform-chart-items',
    ),
    'webform_chart_item' => array(
      'variables' => array(
        'raw_item' => NULL,
        'configs' => NULL,
      ),
      'template' => 'templates/webform-chart-item',
    ),
    // Theme the help on setting page.
    'webform_chart_form_help' => array(
      'file' => 'webform_chart.admin.inc',
      'variables' => array(),
    ),
  );
  return $theme;
}