? rules_php53fixes.patch ? rules_php53fixes2.patch Index: rules/rules.api.php =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/rules/rules/Attic/rules.api.php,v retrieving revision 1.1.2.9 diff -u -p -r1.1.2.9 rules.api.php --- rules/rules.api.php 10 Sep 2009 11:05:36 -0000 1.1.2.9 +++ rules/rules.api.php 20 Feb 2010 08:43:48 -0000 @@ -637,7 +637,7 @@ function hook_rules_action_type_map() { * @param $rule * An array representing the rule with its properties. */ -function hook_rules_import($rule) { +function hook_rules_import(&$rule) { // Examine the rule, e.g. check if it is event-triggered. if ($rule['#set'] === 'event_my_module') { // Initiate post-processing that is needed to make to rule work. Index: rules/rules.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/rules/rules/Attic/rules.module,v retrieving revision 1.1.2.69 diff -u -p -r1.1.2.69 rules.module --- rules/rules.module 25 Aug 2009 13:01:03 -0000 1.1.2.69 +++ rules/rules.module 20 Feb 2010 08:43:49 -0000 @@ -1064,6 +1064,10 @@ function rules_features_api() { * Calls the import hook to allow modules to react on the import. */ function rules_import_hook(&$rule) { - module_invoke_all('rules_import', $rule); + $hook = 'rules_import'; + foreach (module_implements($hook) as $module) { + $function = $module . '_' . $hook; + $function($rule); + } return $rule; }