function page_manager_user_view_page_manager_tasks

@file Overrides the user profile display at user/%user.

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

File

page_manager/plugins/tasks/user_view.inc, line 10

Code

function page_manager_user_view_page_manager_tasks() {
    return array(
        // This is a 'page' task and will fall under the page admin UI.
'task type' => 'page',
        'title' => t('User profile template'),
        'admin title' => t('User profile template'),
        'admin description' => t('When enabled, this overrides the default Drupal behavior for displaying user profiles at <em>user/%user</em>. If you add variants, you may use selection criteria such as roles or user access to provide different views of user profiles. If no variant is selected, the default Drupal user view will be used. Please note that if you are using pathauto, aliases may make a node to be somewhere else, but as far as Drupal is concerned, they are still at user/%user.'),
        'admin path' => 'user/%user',
        // Callback to add items to the page managertask administration form:
'task admin' => 'page_manager_user_view_task_admin',
        'hook menu' => 'page_manager_user_view_menu',
        'hook menu alter' => 'page_manager_user_view_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_user_view_get_arguments',
        'get context placeholders' => 'page_manager_user_view_get_contexts',
        // Allow this to be enabled or disabled:
'disabled' => variable_get('page_manager_user_view_disabled', TRUE),
        'enable callback' => 'page_manager_user_view_enable',
        'access callback' => 'page_manager_user_view_access_check',
    );
}