You are here

function _paranoia_hide_module in Paranoia 6

Remove a module from the module administration form.

1 call to _paranoia_hide_module()
paranoia_form_alter in ./paranoia.module
Implementation of hook_form_alter().

File

./paranoia.module, line 51
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_hide_module(&$form, $module) {
  unset($form['validation_modules']['#value'][$module], $form['name'][$module], $form['version'][$module], $form['description'][$module], $form['throttle'][$module], $form['throttle']['#options'][$module], $form['status']['#options'][$module]);
}