function jquery_update_requirements in jQuery Update 7.3
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()
- 6 jquery_update.install \jquery_update_requirements()
- 7 jquery_update.install \jquery_update_requirements()
- 7.2 jquery_update.install \jquery_update_requirements()
Implements hook_requirements().
File
- ./
jquery_update.install, line 11 - Install file for jQuery Update.
Code
function jquery_update_requirements($phase) {
$requirements = array();
if ($phase == 'runtime') {
$t = get_t();
$jquery = drupal_get_library('system', 'jquery');
$ui = drupal_get_library('system', 'ui');
$requirements['jquery_update'] = array(
'title' => $t('jQuery Update'),
'severity' => REQUIREMENT_OK,
'value' => t('jQuery %jquery (<a href="@link">configure</a>) and jQuery UI %ui', array(
'%jquery' => $jquery['version'],
'%ui' => $ui['version'],
'@link' => url('admin/config/development/jquery_update'),
)),
);
}
return $requirements;
}