function paranoia_enable in Paranoia 7
Same name and namespace in other branches
- 6 paranoia.install \paranoia_enable()
Implements hook_enable().
File
- ./
paranoia.install, line 13 - Disable php module & set install message for Paranoia.
Code
function paranoia_enable() {
// Some day it should be possible to remove this require_once. Some day.
require_once dirname(__FILE__) . '/paranoia.module';
// Disable the risky modules.
paranoia_remove_disabled_modules();
// Manually remove any enabled risky permissions.
_paranoia_remove_risky_permissions();
$t = get_t();
drupal_set_message($t('Risky permissions have been automatically disabled.'));
}