function secure_permissions_form_system_modules_alter in Secure Permissions 6
In Drupal 6, we do not have a hook for when modules are enabled or disabled, so we must add a submit to the form.
File
- ./
secure_permissions.module, line 527 - Secure Permissions module file.
Code
function secure_permissions_form_system_modules_alter($form, &$form_state) {
$modules = module_implements('secure_permissions');
$form['secure_permissions'] = array(
'#type' => 'value',
'#value' => $modules,
);
$form['#submit'][] = 'secure_permissions_modules_submit';
}