You are here

function group_group_view_page_manager_tasks in Group 7

Implements hook_PLUGIN_page_manager_tasks().

File

plugins/page_manager/tasks/group_view.inc, line 10
Take over group/%group with Page Manager.

Code

function group_group_view_page_manager_tasks() {
  return array(
    'task type' => 'page',
    'title' => t('Group template'),
    'admin title' => t('Group template'),
    'admin description' => t('When enabled, this overrides the default Drupal behavior for displaying groups at <em>group/%group</em>. If you add variants, you may use selection criteria such as group type or language or user access to provide different views of groups. If no variant is selected, the default Group view will be used. This page only affects groups viewed as pages, it will not affect groups viewed in lists or at other locations. Also please note that if you are using pathauto, aliases may make a group to be somewhere else, but as far as Drupal is concerned, they are still at group/%group.'),
    'admin path' => 'group/%group',
    'hook menu alter' => 'group_group_view_menu_alter',
    'handler type' => 'context',
    'get arguments' => 'group_group_view_get_arguments',
    'disabled' => variable_get('group_pm_group_view_disabled', TRUE),
    'enable callback' => 'group_group_view_enable',
    'access callback' => 'group_group_view_access_check',
  );
}