### Eclipse Workspace Patch 1.0
#P tinymce_node_picker
Index: tinymce_node_picker.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/tinymce_node_picker/tinymce_node_picker.module,v
retrieving revision 1.1
diff -u -r1.1 tinymce_node_picker.module
--- tinymce_node_picker.module	3 Aug 2009 17:45:07 -0000	1.1
+++ tinymce_node_picker.module	22 Sep 2009 12:25:35 -0000
@@ -167,3 +167,18 @@
 
   return $views;
 }
+
+
+/**
+ * Implementation of hook_theme_registry_alter().
+ */
+function tinymce_node_picker_theme_registry_alter(&$theme_registry) {
+  if (is_array($theme_registry['page'])) {
+    // store a reference to the first theme path entry (normally this should be 'modules/system')
+    $first_path = array_shift($theme_registry['page']['theme paths']);
+    // get the path to our module's page template files
+    $template_path = drupal_get_path('module', 'tinymce_node_picker') . '/theme';
+    // now change the array to have the first entry first, then our template path, and then any other theme paths
+    array_unshift($theme_registry['page']['theme paths'], $first_path, $template_path);    
+  }
+}
\ No newline at end of file
