You are here

function paranoia_form_user_admin_settings_alter in Paranoia 8

Implements hook_form_FORM_ID_alter().

Hides the admin role on the user settings form.

File

./paranoia.module, line 47
Disables PHP block visibility permission and gives status error if a role has this permission. Disables the PHP module. Hides the PHP and paranoia modules from the modules page. Prevents user/1 editing which could give access to abitrary contrib…

Code

function paranoia_form_user_admin_settings_alter(&$form, FormStateInterface $form_state) {
  $form['admin_role']['#access'] = FALSE;
}