function page_manager_blog_user_page_manager_tasks in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 page_manager/plugins/tasks/blog_user.inc \page_manager_blog_user_page_manager_tasks()
Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.
File
- page_manager/
plugins/ tasks/ blog_user.inc, line 7
Code
function page_manager_blog_user_page_manager_tasks() {
if (!module_exists('blog')) {
return;
}
return array(
// This is a 'page' task and will fall under the page admin UI
'task type' => 'page',
'title' => t('User blog'),
'admin title' => t('User blog'),
'admin description' => t('When enabled, this overrides the default Drupal behavior for displaying user blogs at <em>blog/%user</em>. If no variant is selected, the default Drupal user blog will be used.'),
'admin path' => 'blog/%user',
// Callback to add items to the page managertask administration form:
'task admin' => 'page_manager_blog_user_task_admin',
'hook menu alter' => 'page_manager_blog_user_menu_alter',
// This is task uses 'context' handlers and must implement these to give the
// handler data it needs.
'handler type' => 'context',
// handler type -- misnamed
'get arguments' => 'page_manager_blog_user_get_arguments',
'get context placeholders' => 'page_manager_blog_user_get_contexts',
// Allow this to be enabled or disabled:
'disabled' => variable_get('page_manager_blog_user_disabled', TRUE),
'enable callback' => 'page_manager_blog_user_enable',
);
}