You are here

function user_pages_users_page_manager_tasks in User Pages 6

Same name and namespace in other branches
  1. 7 plugins/tasks/users.inc \user_pages_users_page_manager_tasks()

File

plugins/tasks/users.inc, line 9

Code

function user_pages_users_page_manager_tasks() {
  return array(
    // This is a 'page' task and will fall under the page admin UI
    'task type' => 'page',
    'title' => t('User Page'),
    'admin title' => t('User Page'),
    'admin description' => t('When enabled, this overrides the default Drupal behavior for the user page at <em>/user</em>.'),
    'admin path' => 'user',
    // Menu hooks so that we can alter the node/%node menu entry to point to us.
    'hook menu alter' => 'user_pages_user_users_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('user_pages_user_users_disabled', TRUE),
    'enable callback' => 'user_pages_user_users_enable',
  );
}