You are here

function scale_theme in Quiz 7

Same name and namespace in other branches
  1. 8.6 question_types/quiz_scale/quiz_scale.module \scale_theme()
  2. 8.4 question_types/scale/scale.module \scale_theme()
  3. 8.5 question_types/quiz_scale/quiz_scale.module \scale_theme()
  4. 6.6 question_types/scale/scale.module \scale_theme()
  5. 6.4 question_types/scale/scale.module \scale_theme()
  6. 7.6 question_types/scale/scale.module \scale_theme()
  7. 7.4 question_types/scale/scale.module \scale_theme()
  8. 7.5 question_types/scale/scale.module \scale_theme()

Implements hook_theme().

File

question_types/scale/scale.module, line 42
The main file for scale.

Code

function scale_theme($existing, $type, $theme, $path) {
  $module_path = drupal_get_path('module', 'scale');
  return array(
    'scale_creation_form' => array(
      'render element' => 'form',
      'path' => $module_path . '/theme',
      'file' => 'scale.theme.inc',
    ),
    'scale_response_form' => array(
      'render element' => 'form',
      'path' => $module_path . '/theme',
      'file' => 'scale.theme.inc',
    ),
    'scale_answer_node_view' => array(
      'variables' => array(
        'alternatives' => NULL,
      ),
      'path' => $module_path . '/theme',
      'file' => 'scale.theme.inc',
    ),
    'scale_answering_form' => array(
      'render element' => 'form',
      'path' => $module_path . '/theme',
      'template' => 'scale-answering-form',
    ),
  );
}