function cas_roles_og_menu in CAS roles 7.2
Implements hook_menu().
File
- cas_roles_og/
cas_roles_og.module, line 14 - Allows user account and profile attributes to be automatically populated using tokens. Provides basic tokens for attributes returned by the CAS server.
Code
function cas_roles_og_menu() {
$items = array();
if (module_exists('og_ui')) {
$items['group/%/%/admin/cas-roles'] = array(
'title callback' => 'og_ui_menu_title_callback',
'title arguments' => array(
'CAS roles in group @group',
1,
2,
),
'description' => 'Manage automatic CAS membership settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'cas_roles_og_admin_settings',
1,
2,
),
'access callback' => 'og_ui_user_access_group',
'access arguments' => array(
'administer cas',
1,
2,
),
'weight' => -4,
'file' => 'cas_roles_og.admin.inc',
);
}
return $items;
}