Index: README.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/colorbox/README.txt,v
retrieving revision 1.8.2.1
diff -u -p -r1.8.2.1 README.txt
--- README.txt	28 Jun 2010 17:30:26 -0000	1.8.2.1
+++ README.txt	7 Jul 2010 22:55:27 -0000
@@ -138,4 +138,24 @@ Contributions:
 
 Last updated:
 ------------
-$Id: README.txt,v 1.8.2.1 2010/06/28 17:30:26 frjo Exp $
\ No newline at end of file
+$Id: README.txt,v 1.8.2.1 2010/06/28 17:30:26 frjo Exp $
+
+
+Hooks:
+-----
+hook_colorbox_form_access($form_id);
+
+  Allow other modules to use colorbox, passing in the form id
+
+  Example: 
+  /**
+   * Implementation of hook_colorbox_form_access().
+   */
+  function my_module_colorbox_form_access($form_id) {
+    $access = FALSE;
+    if ($form_id == 'forward_form') {
+      return user_access('access forward');
+    }
+    return $access;
+  }
+
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	7 Jul 2010 22:55:27 -0000
@@ -91,6 +91,7 @@ function colorbox_menu() {
  * Colorbox menu access check.
  */
 function _colorbox_form_page_access($form_id) {
+  $access = FALSE;
   switch ($form_id) {
     case 'contact_mail_page':
       $access = user_access('access site-wide contact form');
@@ -103,9 +104,14 @@ function _colorbox_form_page_access($for
     case 'user_login_block':
       $access = user_is_anonymous();
       break;
-    default:
-      // All other forms get no access.
-      $access = FALSE;
+  }
+
+  // hook_colorbox_form_access
+  foreach (module_implements('colorbox_form_access') as $module) {
+    $access = module_invoke($module, 'colorbox_form_access', $form_id);
+    if ($access) {
+      return $access;
+    }
   }
 
   return $access;
