function page_manager_blog_page_manager_tasks

Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.

File

page_manager/plugins/tasks/blog.inc, line 11

Code

function page_manager_blog_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('All blogs'),
        'admin title' => t('All blogs'),
        'admin description' => t('When enabled, this overrides the default Drupal behavior for the all blogs at <em>/blog</em>. If no variant is selected, the default Drupal most recent blog posts will be shown.'),
        'admin path' => 'blog',
        // Menu hooks so that we can alter the node/%node menu entry to point to us.
'hook menu alter' => 'page_manager_blog_menu_alter',
        // This is task uses 'context' handlers and must implement these to give the
        // handler data it needs.
'handler type' => 'context',
        // Allow this to be enabled or disabled:
'disabled' => variable_get('page_manager_blog_disabled', TRUE),
        'enable callback' => 'page_manager_blog_enable',
        'access callback' => 'page_manager_blog_access_check',
    );
}