Index: plupload.install
===================================================================
RCS file: plupload.install
diff -N plupload.install
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ plupload.install	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,29 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Install, update and uninstall functions for the plupload module.
+ *
+ */
+
+function plupload_requirements($phase) {
+  $t = get_t();
+  $requirements['plupload'] = array();
+  $moddir = drupal_get_path('module', 'plupload');
+  $libdir = $moddir .'/plupload';
+  $jsfile = $libdir .'/src/javascript/plupload.js';
+  if (! is_dir($libdir) || ! is_readable($jsfile)) {
+    $requirements['plupload'][] = array(
+      'title' => 'Plupload',
+      'description' => $t('The plupload library files are either missing or not readable.  Please <a href="!link">follow the directions given in the README.txt file</a> regarding module installation.', array('!link' => url($moddir .'/README.txt'))),
+      'severity' => REQUIREMENT_ERROR,
+    );
+    if ($phase == 'runtime') {
+      // If we do this at install time, we get a misworded "currently using..." message from core.
+      // See drupal_check_module in install.inc.
+      $requirements['plupload']['value'] = 'Plupload libraries not found';
+    }
+  }
+  return $requirements['plupload'];
+}
