? info-file-alter-217912.patch
? developer/element_val_submit_validate_210463.patch
? developer/fix-groups-215958.patch
? developer/hook_translated_menu_link_alter.patch
? developer/menu_link_alter.patch
? developer/submit_execute_210463.patch
? developer/hooks/hook-help-154064-26.patch
? developer/hooks/hook-help-154064-28.patch
? developer/topics/FAPI-QS-210463-2.patch
Index: developer/hooks/core.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/docs/developer/hooks/core.php,v
retrieving revision 1.184
diff -u -p -r1.184 core.php
--- developer/hooks/core.php	30 Jun 2008 17:50:02 -0000	1.184
+++ developer/hooks/core.php	6 Jul 2008 17:37:59 -0000
@@ -1016,6 +1016,25 @@ function hook_menu() {
   return $items;
 }
 
+/**
+ * Alter the information parsed from module and theme .info files
+ *
+ * This hook is invoked in  module_rebuild_cache() and in system_theme_data().
+ * A module may implement this hook in order to add to or alter the data
+ * generated by reading the .info file with drupal_parse_info_file().
+ *
+ * @param &$info
+ *   The .info file contents, passed by reference so that it can be altered.
+ * @param $file
+ *   Full information about the module or theme, including $file->name, and
+ *   $file->filename
+ */
+function hook_system_info_alter(&$info, $file) {
+  // Only fill this in if the .info file does not define a 'datestamp'.
+  if (empty($info['datestamp'])) {
+    $info['datestamp'] = filemtime($file->filename);
+  }
+}
 
 /**
  * Inform the node access system what permissions the user has.
