function short_answer_theme in Quiz 8.6
Same name and namespace in other branches
- 8.4 question_types/short_answer/short_answer.module \short_answer_theme()
- 8.5 question_types/quiz_short_answer/quiz_short_answer.module \short_answer_theme()
- 6.6 question_types/short_answer/short_answer.module \short_answer_theme()
- 6.3 question_types/short_answer/short_answer.module \short_answer_theme()
- 6.4 question_types/short_answer/short_answer.module \short_answer_theme()
- 6.5 question_types/short_answer/short_answer.module \short_answer_theme()
- 7.6 question_types/short_answer/short_answer.module \short_answer_theme()
- 7 question_types/short_answer/short_answer.module \short_answer_theme()
- 7.4 question_types/short_answer/short_answer.module \short_answer_theme()
- 7.5 question_types/short_answer/short_answer.module \short_answer_theme()
Implements hook_theme().
File
- question_types/
quiz_short_answer/ quiz_short_answer.module, line 60 - Short_answer question type for the Quiz module.
Code
function short_answer_theme($existing, $type, $theme, $path) {
$module_path = drupal_get_path('module', 'short_answer');
return array(
'short_answer_response_form' => array(
'render element' => 'form',
'path' => $module_path . '/theme',
'file' => 'short_answer.theme.inc',
),
'short_answer_user_answer' => array(
'variables' => array(
'answer' => NULL,
'correct' => NULL,
),
'path' => $module_path . '/theme',
'file' => 'short_answer.theme.inc',
),
'short_answer_answering_form' => array(
'render element' => 'form',
'path' => $module_path . '/theme',
'template' => 'short-answer-answering-form',
),
);
}