You are here

function registration_role_menu in Registration role 5

Same name and namespace in other branches
  1. 6 registration_role.module \registration_role_menu()
  2. 7 registration_role.module \registration_role_menu()

Implementation of hook_menu().

This is the Drupal 5 way but it should work for 4.7 settings

File

./registration_role.module, line 32

Code

function registration_role_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/user/registration_role',
      'title' => t('Registration role'),
      'description' => t('Assign users an extra role at signup.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'registration_role_admin_settings',
      ),
      'access' => user_access('administer users'),
    );
  }
  return $items;
}