function acl_form_system_modules_alter in ACL 6
Implementation of hook_form_alter().
Add a compatibility error message to the module display view if needed.
File
- ./
acl.module, line 214 - An API module providing by-user access control lists.
Code
function acl_form_system_modules_alter(&$form, $form_state) {
if (!isset($form['#theme']) || $form['#theme'] != 'confirm_form') {
if (module_exists('authcache')) {
module_load_install('acl');
$requirements = acl_requirements('runtime');
drupal_set_message($requirements['acl']['title'] . ': ' . $requirements['acl']['value'], 'error');
}
}
}