2

Is there a way to setup a view in drupal 6 that shows me users assigned new roles in the last month and who assigned the role?

I have video products that sell both through the online store and at the front desk of various martial arts schools. Currently the online portion is handled with ubercart granting access to appropriate roles. However tracking the sales from the front desk is messy, using the role watchdog module and filtering the email notifications.

Being able to see all role modifications in the last month would simplify tracking of sales to each school greatly.

3 Answers 3

0

For D6, check out the User Role History module

1

You could create a content type User Role, then with Rules module register when a role it's assigned.

1
  • An advanced way instead of using Rules, will be create your own module and using hook hook_user_role_update, then programatically create content User Role.
    – ropic
    May 15, 2012 at 15:11
0

Not currently possible; see http://drupal.org/node/1263032

5
  • Well that is role watchdog itself needing a patch to enable it in views (which would be nice). Outside of role watchdog do role assignments not get timestamped in some way? Seems like it should be logged someplace but I can't find it.
    – megaw
    May 15, 2012 at 14:49
  • No, role assignments are not timestamped unless you add code (role_watchdog, or see other answers) to do so. If you want to use role_watchdog, see also drupal.org/node/1408090. Building your own role_watchdog with Rules, as suggested by @ropic, is another fine option. May 15, 2012 at 15:21
  • Sweet lots of options then. Thanks for all the help.
    – megaw
    May 15, 2012 at 17:00
  • I posted my latest improvements to role_watchdog to drupal.org/node/1516742. The latest patch implements 1408090, but with pagers. Only the d6 version is available at the moment, but I'll do a d7 version eventually. Don't know if the maintainer is or is not going to be interested in og support, though, which is my primary need. May 15, 2012 at 17:22
  • Added your improvements patch and they work fantastic!
    – megaw
    May 15, 2012 at 22:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.