You are here

function short_answer_theme in Quiz 8.4

Same name and namespace in other branches
  1. 8.6 question_types/quiz_short_answer/quiz_short_answer.module \short_answer_theme()
  2. 8.5 question_types/quiz_short_answer/quiz_short_answer.module \short_answer_theme()
  3. 6.6 question_types/short_answer/short_answer.module \short_answer_theme()
  4. 6.3 question_types/short_answer/short_answer.module \short_answer_theme()
  5. 6.4 question_types/short_answer/short_answer.module \short_answer_theme()
  6. 6.5 question_types/short_answer/short_answer.module \short_answer_theme()
  7. 7.6 question_types/short_answer/short_answer.module \short_answer_theme()
  8. 7 question_types/short_answer/short_answer.module \short_answer_theme()
  9. 7.4 question_types/short_answer/short_answer.module \short_answer_theme()
  10. 7.5 question_types/short_answer/short_answer.module \short_answer_theme()

Implements hook_theme().

File

question_types/short_answer/short_answer.module, line 107
The main file for short_answer.

Code

function short_answer_theme($existing, $type, $theme, $path) {
  $module_path = drupal_get_path('module', 'short_answer');
  return array(
    'short_answer_view_unscored' => array(
      'variables' => array(
        'unscored' => array(),
      ),
      'file' => 'short_answer.theme.inc',
    ),
    'short_answer_response_form' => array(
      'render element' => 'form',
      'file' => 'short_answer.theme.inc',
    ),
    'short_answer_user_answer' => array(
      'variables' => array(
        'answer' => NULL,
        'correct' => NULL,
      ),
      'file' => 'short_answer.theme.inc',
    ),
  );
}