You are here

function quiz_quiztake_enable in Quiz 7.4

Same name and namespace in other branches
  1. 7.6 plugins/page_manager/tasks/quiztake.inc \quiz_quiztake_enable()
  2. 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;
  }
}