You are here

function acl_requirements in ACL 6

Implementation of hook_requirements().

1 call to acl_requirements()
acl_form_system_modules_alter in ./acl.module
Implementation of hook_form_alter().

File

./acl.install, line 110
Install, update and uninstall functions for the acl module.

Code

function acl_requirements($phase) {
  $requirements = array();
  $t = get_t();

  // Check for existence of incompatible Authcache contrib module.
  if ($phase == 'runtime' && module_exists('authcache')) {
    $requirements['acl'] = array(
      'title' => $t('!ACL compatibility', array(
        '!ACL' => '<a href="http://drupal.org/project/acl">ACL</a>',
      )),
      'value' => $t('!Authcache changes the behavior of Drupal in a way that is fundamentally incompatible with the per-user access control implemented by ACL. Please disable it!', array(
        '!Authcache' => '<a href="http://drupal.org/project/authcache">Authcache</a>',
      )),
      'severity' => REQUIREMENT_ERROR,
    );
  }
  return $requirements;
}