agrcache.install 518 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * @file
  4. * Schema, install and update functions for agrcache module.
  5. */
  6. /**
  7. * Implements hook_requirements().
  8. */
  9. function agrcache_requirements($phase) {
  10. $t = get_t();
  11. $requirements = array();
  12. if (!variable_get('clean_url', 0)) {
  13. $requirements['agrcache_clean_url'] = array(
  14. 'title' => $t('Clean urls'),
  15. 'value' => $t('Aggregate cache requires clean URLs to be enabled in order to serve aggregates.'),
  16. 'severity' => REQUIREMENT_WARNING,
  17. );
  18. }
  19. return $requirements;
  20. }