You are here

function registration_role_menu in Registration role 6

Same name and namespace in other branches
  1. 5 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() {
  $items = array();
  $items['admin/user/registration_role'] = array(
    'title' => t('Registration role'),
    'description' => t('Assign users an extra role at signup.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'registration_role_admin_settings',
    ),
    'access arguments' => array(
      'administer users',
    ),
  );
  return $items;
}