? .DS_Store
? .new.2tgdtV
? .new.crjsQe
? .new.n2qJLS
? .new.pgNix0
? callback_classes_00.patch
? callback_classes_01.patch
? import_predefined_indexes_00.patch
? layer_filters_00.patch
? layer_filters_01.patch
? layer_filters_02.patch
? layer_filters_03.patch
? layer_filters_04.patch
? load_function_00.patch
? images/.DS_Store
? images/filter.png
? images/filter_disabled.png
? includes/.new.Mq9NPy
? includes/.new.TSEfwA
? includes/.new.gtFZAL
? includes/.new.kgO1lr
? includes/.new.owkCEx
? includes/.new.sFpesB
? indexes/.DS_Store
? js/index.admin copy.js
Index: index.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/index/Attic/index.install,v
retrieving revision 1.1.2.9
diff -u -p -r1.1.2.9 index.install
--- index.install	10 Jan 2010 01:45:01 -0000	1.1.2.9
+++ index.install	17 Jan 2010 01:12:05 -0000
@@ -127,6 +127,7 @@ function index_schema() {
  */
 function index_install() {
   drupal_install_schema('index');
+  index_import_predefined();
 }
 
 /**
@@ -143,4 +144,22 @@ function index_uninstall() {
  */
 function index_enable() {
   drupal_set_message(st('Index has been enabled. <a href="@add_index">Add an index</a> and <a href="@permissions">configure permissions</a> to get started.', array('@add_index' => url('admin/build/index/add'), '@permissions' => url('admin/user/permissions', array('fragment' => 'module-index')))));
+}
+
+/**
+ * Import all predefined indexes from /indexes within Index's directory.
+ */
+function index_import_predefined() {
+  drupal_load('module', 'index');
+  index_load_include('classes');
+  $dir = drupal_get_path('module', 'index') . '/indexes';
+  $handle = opendir($dir);
+  while (($file = readdir($handle)) !== FALSE) {
+    $contents = file_get_contents($dir . '/' . $file);
+    // Check if the imported file contains serialized data and if the
+  	// unserialized data is an index object.
+    if (($index = @unserialize($contents)) && $index instanceof index) {
+      $index->insert();
+    }
+  }
 }
\ No newline at end of file
Index: includes/index.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/index/includes/Attic/index.admin.inc,v
retrieving revision 1.1.2.42
diff -u -p -r1.1.2.42 index.admin.inc
--- includes/index.admin.inc	11 Jan 2010 16:44:49 -0000	1.1.2.42
+++ includes/index.admin.inc	17 Jan 2010 01:12:06 -0000
@@ -737,7 +737,7 @@ function index_form_delete_submit(array 
  *   The index to export.
  */
 function index_export(index $index) {
-  unset($index->iid);
+  unset($index->iid, $index->page_path, $index->page_enabled, $index->block_enabled);
   drupal_set_header('Content-Type: text/plain; charset=UTF-8');
   drupal_set_header('Content-Disposition: attachment; filename=' . index_export_filename($index->title));
   echo serialize($index);
Index: indexes/index-website_crew.txt
===================================================================
RCS file: indexes/index-website_crew.txt
diff -N indexes/index-website_crew.txt
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ indexes/index-website_crew.txt	17 Jan 2010 01:12:06 -0000
@@ -0,0 +1 @@
+O:5:"index":10:{s:5:"title";s:12:"Website crew";s:11:"description";s:65:"These are all crew members of this website, sorted by their role.";s:6:"layers";a:1:{i:0;O:10:"indexLayer":8:{s:5:"index";r:1;s:7:"lineage";s:1:"0";s:6:"parent";N;s:11:"entity_type";s:9:"user_role";s:17:"entity_count_only";s:1:"0";s:23:"hide_childless_entities";s:1:"0";s:6:"layers";a:1:{i:0;O:10:"indexLayer":8:{s:5:"index";r:1;s:7:"lineage";s:3:"0_0";s:6:"parent";r:5;s:11:"entity_type";s:4:"user";s:17:"entity_count_only";s:1:"0";s:23:"hide_childless_entities";s:1:"0";s:6:"layers";a:0:{}s:8:"entities";a:2:{s:4:"page";a:0:{}s:5:"block";a:0:{}}}}s:8:"entities";a:2:{s:4:"page";a:0:{}s:5:"block";a:0:{}}}}s:9:"page_mode";s:9:"upper_two";s:10:"page_roles";a:0:{}s:13:"page_entities";a:0:{}s:12:"page_content";N;s:10:"block_mode";s:4:"tree";s:14:"block_entities";a:0:{}s:13:"block_content";N;}
\ No newline at end of file
