You are here

function quail_api_theme in Quail API 7

Same name and namespace in other branches
  1. 8 quail_api.module \quail_api_theme()

Implements hook_theme().

File

./quail_api.module, line 32
Module file for the quail api.

Code

function quail_api_theme($existing, $type, $theme, $path) {
  $themes = array();
  $themes['quail_api_results'] = array(
    'template' => 'quail_api_results',
    'variables' => array(
      'severity_id' => NULL,
      'severity_array' => NULL,
      'severity_results' => array(),
      'markup_format' => NULL,
      'title_block' => 'h3',
      'display_title' => TRUE,
      'display_description' => TRUE,
    ),
    'path' => drupal_get_path('module', 'quail_api') . '/includes',
  );
  $themes['quail_api_test'] = array(
    'template' => 'quail_api_test',
    'variables' => array(
      'test_name' => '',
      'test_results' => array(),
      'markup_format' => NULL,
    ),
    'path' => drupal_get_path('module', 'quail_api') . '/includes',
  );
  $themes['quail_api_problem'] = array(
    'template' => 'quail_api_problem',
    'variables' => array(
      'problem_id' => '',
      'problem_data' => array(),
      'markup_format' => NULL,
    ),
    'path' => drupal_get_path('module', 'quail_api') . '/includes',
  );
  return $themes;
}