function page_manager_node_edit_page_manager_tasks
Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.
File
-
page_manager/
plugins/ tasks/ node_edit.inc, line 11
Code
function page_manager_node_edit_page_manager_tasks() {
return array(
// This is a 'page' task and will fall under the page admin UI.
'task type' => 'page',
'title' => t('Node add/edit form'),
'admin title' => t('Node add/edit form'),
'admin description' => t('When enabled, this overrides the default Drupal behavior for adding or edit nodes at <em>node/%node/edit</em> and <em>node/add/%node_type</em>. If you add variants, you may use selection criteria such as node type or language or user access to provide different edit forms for nodes. If no variant is selected, the default Drupal node edit will be used.'),
'admin path' => 'node/%node/edit',
// Menu hooks so that we can alter the node/%node menu entry to point to us.
'hook menu' => 'page_manager_node_edit_menu',
'hook menu alter' => 'page_manager_node_edit_menu_alter',
// This is task uses 'context' handlers and must implement these to give the
// handler data it needs.
'handler type' => 'context',
'get arguments' => 'page_manager_node_edit_get_arguments',
'get context placeholders' => 'page_manager_node_edit_get_contexts',
// Allow this to be enabled or disabled:
'disabled' => variable_get('page_manager_node_edit_disabled', TRUE),
'enable callback' => 'page_manager_node_edit_enable',
'access callback' => 'page_manager_node_edit_access_check',
);
}