t('LESS'),
'value' => isset(lessc::$VERSION) ? preg_replace('/([^0-9\.-])+/i', '', lessc::$VERSION) : '(less than v0.3.2)',
'description' => t('To check for newer versions of lessphp, go to http://leafo.net/lessphp/', array("!url" => url('http://leafo.net/lessphp/'))),
'severity' => REQUIREMENT_OK,
);
}
if (variable_get('less_devel', FALSE)) {
$requirements['less_devel'] = array(
'title' => 'LESS developer mode',
'value' => t('Enabled'),
'description' => t('LESS files are being regenerated on every request. Remember to turn off this feature on production websites.', array("!url" => url('admin/config/development/less'))),
'severity' => REQUIREMENT_WARNING,
);
}
if (!$lessc_exists) {
$requirements['less_library'] = array(
'title' => 'LESS',
'description' => t('The lessphp library was not detected. Please follow the instructions on the LESS project page to install the lessphp library.', array("!url" => url('http://drupal.org/project/less'))),
'severity' => REQUIREMENT_ERROR,
);
}
break;
default:
break;
}
return $requirements;
}