I get "Call to undefined function rules_events_global_user_argument()". I see that one call to that has been commented out. If i comment out the remaining call to it (see below) then the module seems to work.

Author: Ben Clifford
Date: Tue Nov 8 16:30:58 2011 +0100

fix missing rules error

diff --git a/views/user_stats.rules.inc b/views/user_stats.rules.inc
index b35788b..0392ba9 100644
--- a/views/user_stats.rules.inc
+++ b/views/user_stats.rules.inc
@@ -71,7 +71,7 @@ function user_stats_rules_events_arguments() {
'type' => 'user',
'label' => t("User who's statistics have changed"),
'handler' => 'user_stats_events_argument_user',
- ) + rules_events_global_user_argument(),
+ ) // + rules_events_global_user_argument(),
);
}

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lucasgladding’s picture

I am still testing rules integration, but here is a patch to re-enable it for 7.x-1.x. If anyone else could test the patch, it would be appreciated. I don't think it makes sense to use the global user when invoking the event, so I have removed that. I also removed the commenting inside the user_stats_user_stats() hook, which invokes most events.

Thanks
Lucas Gladding