function paranoia_module_validate in Paranoia 8
Same name and namespace in other branches
- 7 paranoia.module \paranoia_module_validate()
Custom validation function to make sure no banned modules were enabled.
1 string reference to 'paranoia_module_validate'
- paranoia_form_system_modules_alter in ./
paranoia.module - Implements hook_form_FORM_ID_alter().
File
- ./
paranoia.module, line 78 - 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_module_validate($form, FormStateInterface $form_state) {
paranoia_remove_disabled_modules();
}