Index: colorbox.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/colorbox/colorbox.admin.inc,v
retrieving revision 1.16
diff -u -p -r1.16 colorbox.admin.inc
--- colorbox.admin.inc	7 May 2010 07:03:09 -0000	1.16
+++ colorbox.admin.inc	20 May 2010 07:09:46 -0000
@@ -14,10 +14,6 @@ function colorbox_admin_settings() {
 
   $colorbox_path = variable_get('colorbox_path', COLORBOX_PATH);
 
-  if (!is_dir($colorbox_path)) {
-    drupal_set_message(t('You need to download the !colorbox and extract the entire contents of the archive into the %path folder of your server.', array('!colorbox' => l(t('Colorbox plugin'), 'http://colorpowered.com/colorbox/'), '%path' => 'sites/all/libraries')), 'error');
-  }
-
   if (module_exists('imagefield')) {
     $form['colorbox_imagefield'] = array(
       '#type' => 'fieldset',
Index: colorbox.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/colorbox/colorbox.install,v
retrieving revision 1.3
diff -u -p -r1.3 colorbox.install
--- colorbox.install	12 Apr 2010 07:46:06 -0000	1.3
+++ colorbox.install	20 May 2010 07:09:46 -0000
@@ -9,20 +9,33 @@
 /**
  * Implementation of hook_requirements().
  */
-// function colorbox_update_requirements($phase) {
-//   $requirements = array();
-//   $t = get_t();
-//
-//   if ($phase == 'runtime') {
-//     $requirements['colorbox'] = array(
-//       'title' => $t('Colorbox'),
-//       'severity' => REQUIREMENT_OK,
-//       'value' => ,
-//     );
-//   }
-//
-//   return $requirements;
-// }
+function colorbox_requirements($phase) {
+  $requirements = array();
+
+  if ($phase == 'runtime') {
+    $t = get_t();
+    $status = _colorbox_status();
+
+    if (!$status['jquery_version']) {
+      $requirements['colorbox_jquery_version'] = array(
+        'title' => $t('Colorbox required jQuery version'),
+        'value' => $t('Between @a and @b', array('@a' => COLORBOX_MIN_JQUERY_VERSION, '@b' => COLORBOX_MAX_JQUERY_VERSION)),
+        'severity' => REQUIREMENT_ERROR,
+        'description' => $t('You need to download and install a 6.x-2.0 version of the !jquery_update module.', array('!jquery_update' => l(t('jQuery Update'), 'http://drupal.org/project/jquery_update'))),
+      );
+    }
+
+    if (!$status['colorbox_plugin']) {
+      $requirements['colorbox_plugin'] = array(
+        'title' => $t('Colorbox plugin'),
+        'severity' => REQUIREMENT_ERROR,
+        'description' => $t('You need to download the !colorbox and extract the entire contents of the archive into the %path folder of your server.', array('!colorbox' => l(t('Colorbox plugin'), 'http://colorpowered.com/colorbox/'), '%path' => 'sites/all/libraries')),
+      );
+    }
+  }
+
+  return $requirements;
+}
 
 /**
  * Implementation of hook_uninstall().
Index: colorbox.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/colorbox/colorbox.module,v
retrieving revision 1.19
diff -u -p -r1.19 colorbox.module
--- colorbox.module	18 May 2010 07:29:41 -0000	1.19
+++ colorbox.module	20 May 2010 07:09:46 -0000
@@ -10,6 +10,8 @@
  * The default path to the Colorbox directory.
  */
 define('COLORBOX_PATH', 'sites/all/libraries/colorbox');
+define('COLORBOX_MIN_JQUERY_VERSION', '1.3.1');
+define('COLORBOX_MAX_JQUERY_VERSION', '1.4+');
 
 
 /**
@@ -112,6 +114,32 @@ function _colorbox_form_page_access($for
 }
 
 /**
+ * Check Colorbox dependencies, jQuery version and Colorbox plugin.
+ *
+ * @return
+ *   array with TRUE/FALSE for each dependency.
+ *
+ * @see colorbox_requirements()
+ */
+function _colorbox_status() {
+  $status = array();
+  $status['jquery_version'] = FALSE;
+  $status['colorbox_plugin'] = FALSE;
+
+  if (function_exists('jquery_update_get_version')) {
+    if (jquery_update_get_version() >= COLORBOX_MIN_JQUERY_VERSION) {
+      $status['jquery_version'] = TRUE;
+    }
+  }
+
+  if (is_dir(variable_get('colorbox_path', COLORBOX_PATH))) {
+    $status['colorbox_plugin'] = TRUE;
+  }
+
+  return $status;
+}
+
+/**
  * Check if Colorbox should be active for the current URL.
  *
  * @return
