You are here

function group_group_view_enable in Group 7

Callback to enable or disable the page from the UI.

See also

group_group_view_page_manager_tasks()

1 string reference to 'group_group_view_enable'
group_group_view_page_manager_tasks in plugins/page_manager/tasks/group_view.inc
Implements hook_PLUGIN_page_manager_tasks().

File

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

Code

function group_group_view_enable($cache, $disabled) {
  variable_set('group_pm_group_view_disabled', $disabled);

  // Track the status so group_group_view_menu_alter() can throw an error when
  // it cannot swap out the group view page with this task plugin.
  if (!$disabled) {
    $GLOBALS['group_pm_enabling_group_view'] = TRUE;
  }
}