You are here

function user_admin_new_role_submit in Drupal 4

File

modules/user.module, line 1936
Enables the user registration and login system.

Code

function user_admin_new_role_submit($form_id, $form_values) {
  db_query("INSERT INTO {role} (name) VALUES ('%s')", $form_values['name']);
  drupal_set_message(t('The role has been added.'));
  return 'admin/access/roles';
}