You are here

function jquery_update_requirements in jQuery Update 6.2

Same name and namespace in other branches
  1. 5.2 jquery_update.install \jquery_update_requirements()
  2. 5 jquery_update.module \jquery_update_requirements()
  3. 6 jquery_update.install \jquery_update_requirements()
  4. 7.3 jquery_update.install \jquery_update_requirements()
  5. 7 jquery_update.install \jquery_update_requirements()
  6. 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;
}