function multichoice_theme in Quiz 7.5
Same name and namespace in other branches
- 8.6 question_types/quiz_multichoice/quiz_multichoice.module \multichoice_theme()
- 8.4 question_types/multichoice/multichoice.module \multichoice_theme()
- 8.5 question_types/quiz_multichoice/quiz_multichoice.module \multichoice_theme()
- 6.6 question_types/multichoice/multichoice.module \multichoice_theme()
- 6.2 multichoice.module \multichoice_theme()
- 6.3 question_types/multichoice/multichoice.module \multichoice_theme()
- 6.4 question_types/multichoice/multichoice.module \multichoice_theme()
- 6.5 question_types/multichoice/multichoice.module \multichoice_theme()
- 7.6 question_types/multichoice/multichoice.module \multichoice_theme()
- 7 question_types/multichoice/multichoice.module \multichoice_theme()
- 7.4 question_types/multichoice/multichoice.module \multichoice_theme()
Implements hook_theme().
File
- question_types/
multichoice/ multichoice.module, line 86 - Multiplechoice question type for the Quiz module.
Code
function multichoice_theme($existing, $type, $theme, $path) {
$path = drupal_get_path('module', 'multichoice') . '/theme';
return array(
'multichoice_creation_form' => array(
'render element' => 'form',
'path' => $path,
'file' => 'multichoice.theme.inc',
),
'multichoice_answer_node_view' => array(
'variables' => array(
'alternatives' => NULL,
'show_correct' => NULL,
),
'path' => $path,
'file' => 'multichoice.theme.inc',
),
'multichoice_alternative_creation_table' => array(
'render element' => 'form',
'path' => $path,
'template' => 'multichoice-alternative-creation-table',
),
'multichoice_answering_form' => array(
'render element' => 'form',
'path' => $path,
'template' => 'multichoice-answering-form',
),
'multichoice_alternative' => array(
'render element' => 'form',
'path' => $path,
'template' => 'multichoice-alternative',
),
);
}