You are here

function shield_requirements in Shield 7

Implements hook_requirements().

File

./shield.install, line 10
Installation file for shield module

Code

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

  // Show warning if Boost is installed.
  if ($phase === 'runtime' && module_exists('boost')) {
    $requirements['shield_boost'] = array(
      'title' => $t('Shield'),
      'value' => $t('Boost caching suppressed'),
      'description' => $t('Shield prevents shielded pages from being cached by Boost. This is because a Boost cache file can be delivered to unauthenticated users via the Boost .htaccess rules before Shield can influence authentication.'),
      'severity' => REQUIREMENT_WARNING,
    );
  }
  return $requirements;
}