summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSivaji2012-12-15 12:17:44 (GMT)
committer Sivaji2012-12-15 12:17:44 (GMT)
commit578a0fbeb0fa17708b76726ccf22b55f64daa5c5 (patch)
treeff473adc6118f6a81523c8f96e48703a7ca44919
parent732d6a01b4e04d49d037474eb1b3b8a3d76a6865 (diff)
Minor fix to hook_theme() in multichoice module.
-rw-r--r--question_types/multichoice/multichoice.module13
1 files changed, 7 insertions, 6 deletions
diff --git a/question_types/multichoice/multichoice.module b/question_types/multichoice/multichoice.module
index 8db4185..a75ee3b 100644
--- a/question_types/multichoice/multichoice.module
+++ b/question_types/multichoice/multichoice.module
@@ -84,10 +84,11 @@ function multichoice_config_validate($form, $form_state) {
* Implements hook_theme().
*/
function multichoice_theme($existing, $type, $theme, $path) {
+ $path = drupal_get_path('module', 'multichoice') . '/theme';
return array(
'multichoice_creation_form' => array(
'render element' => 'form',
- 'path' => drupal_get_path('module', 'multichoice') . '/theme',
+ 'path' => $path,
'file' => 'multichoice.theme.inc',
),
'multichoice_answer_node_view' => array(
@@ -95,29 +96,29 @@ function multichoice_theme($existing, $type, $theme, $path) {
'alternatives' => NULL,
'show_correct' => NULL,
),
- 'path' => drupal_get_path('module', 'multichoice') . '/theme',
+ 'path' => $path,
'file' => 'multichoice.theme.inc',
),
'multichoice_response' => array(
'variables' => array(
'data' => array(),
),
- 'path' => drupal_get_path('module', 'multichoice') . '/theme',
+ 'path' => $path,
'file' => 'multichoice.theme.inc',
),
'multichoice_alternative_creation' => array(
'render element' => 'form',
- 'path' => drupal_get_path('module', 'multichoice') . '/theme',
+ 'path' => $path,
'template' => 'multichoice-alternative-creation',
),
'multichoice_answering_form' => array(
'render element' => 'form',
- 'path' => drupal_get_path('module', 'multichoice') . '/theme',
+ 'path' => $path,
'template' => 'multichoice-answering-form',
),
'multichoice_alternative' => array(
'render element' => 'form',
- 'path' => drupal_get_path('module', 'multichoice') . '/theme',
+ 'path' => $path,
'template' => 'multichoice-alternative',
),
);