function adminrole_form_alter in Admin role 6
Same name and namespace in other branches
- 5 adminrole.module \adminrole_form_alter()
- 7 adminrole.module \adminrole_form_alter()
Implements hook_form_alter().
File
- ./
adminrole.module, line 40 - 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',
))) {
$form['#submit'][] = 'adminrole_update_permissions';
}
}