$t('LESS'),
'value' => $loaded_engine['name'] . ' - v' . $loaded_engine['version'],
'description' => $t('To check for newer versions go to @vendor_url.', array('@vendor_url' => $loaded_engine['vendor url'])),
'severity' => REQUIREMENT_OK,
);
}
else {
$requirements['less_library'] = array(
'title' => $t('LESS'),
'value' => '',
'description' => $t('A LESS library was not detected. Please follow the instructions on the LESS project page to install the a LESS library.', array("!url" => url('https://drupal.org/project/less'))),
'severity' => REQUIREMENT_ERROR,
);
}
if (variable_get(LESS_DEVEL, FALSE)) {
$requirements[LESS_DEVEL] = array(
'title' => 'LESS developer mode',
'value' => $t('Enabled'),
'description' => $t('LESS files are being checked on every request. Remember to turn off this feature on production websites.', array("!url" => url('admin/config/development/less'))),
'severity' => REQUIREMENT_WARNING,
);
}
break;
default:
break;
}
return $requirements;
}