function adminrole_form_alter in Admin role 7
Same name and namespace in other branches
- 5 adminrole.module \adminrole_form_alter()
- 6 adminrole.module \adminrole_form_alter()
Implements hook_form_alter().
File
- ./
adminrole.module, line 35 - This module simply gives a designated role all permissions every time the modules page is submitted.
Code
function adminrole_form_alter(&$form, $form_state, $form_id) {
if (in_array($form_id, array(
'system_modules',
'user_admin_settings',
'user_admin_permissions',
))) {
$form['#submit'][] = 'adminrole_update_permissions';
}
}