You are here

function multichoice_theme in Quiz 7

Same name and namespace in other branches
  1. 8.6 question_types/quiz_multichoice/quiz_multichoice.module \multichoice_theme()
  2. 8.4 question_types/multichoice/multichoice.module \multichoice_theme()
  3. 8.5 question_types/quiz_multichoice/quiz_multichoice.module \multichoice_theme()
  4. 6.6 question_types/multichoice/multichoice.module \multichoice_theme()
  5. 6.2 multichoice.module \multichoice_theme()
  6. 6.3 question_types/multichoice/multichoice.module \multichoice_theme()
  7. 6.4 question_types/multichoice/multichoice.module \multichoice_theme()
  8. 6.5 question_types/multichoice/multichoice.module \multichoice_theme()
  9. 7.6 question_types/multichoice/multichoice.module \multichoice_theme()
  10. 7.4 question_types/multichoice/multichoice.module \multichoice_theme()
  11. 7.5 question_types/multichoice/multichoice.module \multichoice_theme()

Implements hook_theme().

File

question_types/multichoice/multichoice.module, line 86
The main file for multichoice.

Code

function multichoice_theme($existing, $type, $theme, $path) {
  return array(
    'multichoice_creation_form' => array(
      'render element' => 'form',
      'path' => drupal_get_path('module', 'multichoice') . '/theme',
      'file' => 'multichoice.theme.inc',
    ),
    'multichoice_answer_node_view' => array(
      'variables' => array(
        'alternatives' => NULL,
        'show_correct' => NULL,
      ),
      'path' => drupal_get_path('module', 'multichoice') . '/theme',
      'file' => 'multichoice.theme.inc',
    ),
    'multichoice_response' => array(
      'variables' => array(
        'data' => array(),
      ),
      'path' => drupal_get_path('module', 'multichoice') . '/theme',
      'file' => 'multichoice.theme.inc',
    ),
    'multichoice_alternative_creation' => array(
      'render element' => 'form',
      'path' => drupal_get_path('module', 'multichoice') . '/theme',
      'template' => 'multichoice-alternative-creation',
    ),
    'multichoice_answering_form' => array(
      'render element' => 'form',
      'path' => drupal_get_path('module', 'multichoice') . '/theme',
      'template' => 'multichoice-answering-form',
    ),
    'multichoice_alternative' => array(
      'render element' => 'form',
      'path' => drupal_get_path('module', 'multichoice') . '/theme',
      'template' => 'multichoice-alternative',
    ),
  );
}