You are here

function agrcache_requirements in Aggregate cache 7

Implements hook_requirements().

File

./agrcache.install, line 11
Schema, install and update functions for agrcache module.

Code

function agrcache_requirements($phase) {
  $t = get_t();
  $requirements = array();
  if (!variable_get('clean_url', 0) && $phase == 'runtime') {
    $requirements['agrcache_clean_url'] = array(
      'title' => $t('Clean urls'),
      'value' => $t('Aggregate cache requires clean URLs to be enabled in order to serve aggregates.'),
      'severity' => REQUIREMENT_WARNING,
    );
  }
  return $requirements;
}