$t('Please copy JQuery'), 'description' => $t('In order for the JQuery Update module to work correctly, please copy the file at %mod and use it to replace %core.', array('%core' => 'misc/jquery.js', '%mod' => $path)), 'severity' => $phase == 'install' ? REQUIREMENT_WARNING : REQUIREMENT_ERROR, 'value' => $t('Copy jquery.js'), ); } elseif (!file_exists($path)) { $requirements['jquery'] = array( 'title' => $t('jquery.js no longer exists in the JQuery Update directory'), 'description' => $t('You probably moved rather than copied the jquery.js file from %mod to %core. You should leave a copy of this file in the module directory so that will not lose this file when you upgrade to another revision of Drupal.', array('%core' => 'misc/jquery.js', '%mod' => $path)), 'severity' => $phase == 'install' ? REQUIREMENT_WARNING : REQUIREMENT_ERROR, 'value' => $t('Copy jquery.js'), ); } elseif ($phase == 'runtime') { $requirements['jquery'] = array( 'title' => $t('JQuery Update'), 'description' => t('The current installed version of JQuery is !version', array('%core' => 'misc/jquery.js', '%mod' => $path, '!version' => '')), 'severity' => REQUIREMENT_OK, 'value' => $t('Installed correctly'), ); } } return $requirements; }