You are here

function scale_theme in Quiz 8.5

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. 6.6 question_types/scale/scale.module \scale_theme()
  4. 6.4 question_types/scale/scale.module \scale_theme()
  5. 7.6 question_types/scale/scale.module \scale_theme()
  6. 7 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/quiz_scale/quiz_scale.module, line 38
Scale question type for the Quiz module.

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',
    ),
  );
}