function jquery_update_requirements in jQuery Update 6
Same name and namespace in other branches
- 5.2 jquery_update.install \jquery_update_requirements()
- 5 jquery_update.module \jquery_update_requirements()
- 6.2 jquery_update.install \jquery_update_requirements()
- 7.3 jquery_update.install \jquery_update_requirements()
- 7 jquery_update.install \jquery_update_requirements()
- 7.2 jquery_update.install \jquery_update_requirements()
Implementation of hook_requirements().
File
- ./
jquery_update.install, line 11 - Install file for jQuery Update.
Code
function jquery_update_requirements($phase) {
$requirements = array();
$t = get_t();
if ($phase == 'runtime') {
$requirements['jquery_update'] = array(
'title' => $t('jQuery Update'),
'severity' => REQUIREMENT_OK,
'value' => jquery_update_get_version(),
);
}
return $requirements;
}