You are here

function ggroup_menu in Group 7

Implements hook_menu().

File

modules/ggroup/ggroup.router.inc, line 10
Contains all router functions for the Subgroup module.

Code

function ggroup_menu() {
  $items['group/%group/subgroup/add/%group_type'] = array(
    'title' => 'Add subgroup',
    'title callback' => 'ggroup_add_subgroup_title',
    'title arguments' => array(
      4,
    ),
    'page callback' => 'ggroup_add_subgroup_form',
    'page arguments' => array(
      1,
      4,
    ),
    'access callback' => 'ggroup_add_subgroup_access',
    'access arguments' => array(
      1,
      4,
    ),
    'file' => 'forms/ggroup.inc',
  );
  $items['admin/group/type/manage/%group_type/config/subgroup'] = array(
    'title' => 'Subgroups',
    'description' => 'Configuration regarding subgroups.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ggroup_config_form',
      4,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'configure group module',
    ),
    'file' => 'admin/ggroup.config.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 5,
  );
  return $items;
}