? imageapi-6.x-1.0-alpha1_perm.patch
? imageapi.module.patch
Index: imageapi.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imageapi/imageapi.install,v
retrieving revision 1.5
diff -u -p -r1.5 imageapi.install
--- imageapi.install	1 Aug 2008 18:52:22 -0000	1.5
+++ imageapi.install	8 Aug 2008 16:48:52 -0000
@@ -10,20 +10,22 @@ function imageapi_requirements($phase) {
   // Ensure translations don't break at install time.
   $t = get_t();
 
-  // Check this at runtime rather than install time because the order of 
+  // Check this at runtime rather than install time because the order of
   // installation doesn't take dependencies into account. ImageAPI may have
-  // been installed by not loaded and if we report a requirement error 
+  // been installed by not loaded and if we report a requirement error
   // because we can't find its function or no toolkit is enabled modules that
   // depend on us will still be enabled but will have a missing dependency.
   // Seems like a better idea to let everything get enabled and then inform
   // them of the problem.
-  if (count(imageapi_get_available_toolkits()) == 0) {
-    $requirements['imageapi_toolkits'] = array(
-      'title' => $t('ImageAPI Toolkit'),
-      'value' => $t('No ImageAPI toolkits available'),
-      'severity' => REQUIREMENT_ERROR,
-      'description' => $t('ImageAPI requires a Toolkit such as ImageAPI GD or ImageAPI ImageMagick to function. Goto !modules and enable one of them.', array('!modules' => l('admin/build/modules', 'admin/build/modules'))),
-    );
+  if ($phase == 'runtime') {
+    if (count(imageapi_get_available_toolkits()) == 0) {
+      $requirements['imageapi_toolkits'] = array(
+        'title' => $t('ImageAPI Toolkit'),
+        'value' => $t('No ImageAPI toolkits available'),
+        'severity' => REQUIREMENT_ERROR,
+        'description' => $t('ImageAPI requires a Toolkit such as ImageAPI GD or ImageAPI ImageMagick to function. Goto !modules and enable one of them.', array('!modules' => l('admin/build/modules', 'admin/build/modules'))),
+      );
+    }
   }
 
   return $requirements;
