function multichoice_menu in Quiz 5.2
Same name and namespace in other branches
- 5 multichoice.module \multichoice_menu()
- 6.6 question_types/multichoice/multichoice.module \multichoice_menu()
- 6.2 multichoice.module \multichoice_menu()
- 6.3 question_types/multichoice/multichoice.module \multichoice_menu()
- 6.4 question_types/multichoice/multichoice.module \multichoice_menu()
- 6.5 question_types/multichoice/multichoice.module \multichoice_menu()
Implementation of hook_menu().
File
- ./
multichoice.module, line 53 - Multiple choice question type for the Quiz module.
Code
function multichoice_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'node/add/multichoice',
'title' => t(MULTICHOICE_NAME),
'access' => user_access('create multichoice'),
);
$items[] = array(
'path' => 'admin/settings/multichoice',
'title' => t('Multichoice Configuration'),
'description' => t('Configure Multichoice questions fo users.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'multichoice_admin_settings_form',
),
'access' => user_access(QUIZ_PERM_ADMIN_CONFIG),
'type' => MENU_NORMAL_ITEM,
);
}
return $items;
}