function page_manager_page_page_manager_tasks

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

File

page_manager/plugins/tasks/page.inc, line 19

Code

function page_manager_page_page_manager_tasks() {
    return array(
        'title' => t('Custom pages'),
        'description' => t('Administrator created pages that have a URL path, access control and entries in the Drupal menu system.'),
        'non-exportable' => TRUE,
        'subtasks' => TRUE,
        'subtask callback' => 'page_manager_page_subtask',
        'subtasks callback' => 'page_manager_page_subtasks',
        'save subtask callback' => 'page_manager_page_save_subtask',
        'access callback' => 'page_manager_page_access_check',
        'hook menu' => array(
            'file' => 'page.admin.inc',
            'path' => drupal_get_path('module', 'page_manager') . '/plugins/tasks',
            'function' => 'page_manager_page_menu',
        ),
        'hook theme' => 'page_manager_page_theme',
        // Page only items.
'task type' => 'page',
        'page operations' => array(
            array(
                'title' => ' » ' . t('Create a new page'),
                'href' => 'admin/structure/pages/add',
                'html' => TRUE,
            ),
        ),
        'columns' => array(
            'storage' => array(
                'label' => t('Storage'),
                'class' => 'page-manager-page-storage',
            ),
        ),
        'page type' => 'custom',
        // Context only items.
'handler type' => 'context',
        'get arguments' => array(
            'file' => 'page.admin.inc',
            'path' => drupal_get_path('module', 'page_manager') . '/plugins/tasks',
            'function' => 'page_manager_page_get_arguments',
        ),
        'get context placeholders' => 'page_manager_page_get_contexts',
        'access restrictions' => 'page_manager_page_access_restrictions',
        'uses handlers' => TRUE,
    );
}