You are here

function role_delegation_roles_form in Role Delegation 7

Same name and namespace in other branches
  1. 5 role_delegation.module \role_delegation_roles_form()
  2. 6 role_delegation.module \role_delegation_roles_form()

Provides a form for assigning roles to the current user.

1 string reference to 'role_delegation_roles_form'
role_delegation_menu in ./role_delegation.module
Implements hook_menu().

File

./role_delegation.module, line 107
This module allows site administrators to grant some roles the authority to change roles assigned to users, without them needing the 'administer access control' permission.

Code

function role_delegation_roles_form($form, $form_state, $account) {
  _role_delegation_add_roles_to_form($form, $account);
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}