function quiz_quiztake_enable in Quiz 7.6
Same name and namespace in other branches
- 7.4 plugins/page_manager/tasks/quiztake.inc \quiz_quiztake_enable()
- 7.5 plugins/page_manager/tasks/quiztake.inc \quiz_quiztake_enable()
Callback to enable/disable the page from the UI.
1 string reference to 'quiz_quiztake_enable'
- quiz_quiztake_page_manager_tasks in plugins/
page_manager/ tasks/ quiztake.inc - Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.
File
- plugins/
page_manager/ tasks/ quiztake.inc, line 97
Code
function quiz_quiztake_enable($cache, $status) {
variable_set('quiz_quiztake_disabled', $status);
// Set a global flag so that the menu routine knows it needs
// to set a message if enabling cannot be done.
if (!$status) {
$GLOBALS['page_manager_enabling_quiz'] = TRUE;
}
}