function quiz_quiztake_page_manager_tasks in Quiz 7.6
Same name and namespace in other branches
- 7.4 plugins/page_manager/tasks/quiztake.inc \quiz_quiztake_page_manager_tasks()
- 7.5 plugins/page_manager/tasks/quiztake.inc \quiz_quiztake_page_manager_tasks()
Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.
File
- plugins/
page_manager/ tasks/ quiztake.inc, line 7
Code
function quiz_quiztake_page_manager_tasks() {
return array(
// This is a 'page' task and will fall under the page admin UI
'task type' => 'page',
'title' => t('Take @quiz', array(
'@quiz' => QUIZ_NAME,
)),
'admin title' => t('The take page for @quiz.', array(
'@quiz' => QUIZ_NAME,
)),
'admin description' => t('When enabled, this overrides the default view at node/%node/take'),
'admin path' => 'node/%node/take',
// Menu hooks so that we can alter the node/%node menu entry to point to us.
'hook menu alter' => 'quiz_quiztake_menu_alter',
// This is task uses 'context' handlers and must implement these to give the
// handler data it needs.
'handler type' => 'context',
'get arguments' => 'quiz_quiztake_get_arguments',
'get context placeholders' => 'quiz_quiztake_get_contexts',
// Allow this to be enabled or disabled:
'disabled' => variable_get('quiz_quiztake_disabled', TRUE),
'enable callback' => 'quiz_quiztake_enable',
);
}