* Make sure the module is not enabled and doing nothing useful.
*/
functionexpire_requirements($phase){
if($phase=='install'){
returnarray();
}
$requirements=array();
// Check hook_expire_cache implementation.
$modules=module_implements('expire_cache');
if(empty($modules)){
$requirements['hook status']=array(
'value'=>t('No expirable cache enabled'),
'description'=>t('None of the enabled modules implements hook_expire_cache(). This means that expire.module will not be having any effect. You should enable a module implements this hook, like the <a href="http://drupal.org/project/varnish">Varnish</a> module.'),
'value'=>t('Varnish module is enabled, but configured to use default clearing: expire.module will be redundant with default clearing. Configure varnish.module to use selective clearing instead.'),