function datex_api_requirements in Datex 7.2
Same name and namespace in other branches
- 7 datex_api/datex_api.install \datex_api_requirements()
Implements hook_requirements().
File
- datex_api/
datex_api.install, line 11 - Datex API installation hooks. Checks to see if PHP-Intl is available or not
Code
function datex_api_requirements($phase) {
$requirements = array();
$t = get_t();
$requirements['datex_intl'] = array(
'title' => $t('PHP Intl Availability'),
'value' => $t('Datex API works much better and more smoothly, if PHP-Intl is available.'),
'description' => $t('PHP-Intl is new PHP Internationalazation class, Supporting all the calendars available, Using Intl, datex internal methods will not be needed any more since PHP-Intl is faster and better.'),
'severity' => class_exists('IntlDateFormatter') ? REQUIREMENT_OK : REQUIREMENT_INFO,
);
return $requirements;
}