Using Drupal 7 and the Rules module I need to trigger a rule whenever users update their user-picture. I tried using the event "After updating an existing user account" which does trigger the rule, however it is too general and triggers on many irrelevant events, such as change of user role, or any change the user might make their account fields. I tried to set a condition, a data comparison between the account before and after. something like account-unchanged:picture:fid, but 'picture' is an invalid parameter.. How could this be done? d

  • Do you have the condition has field 'picture' in place? By adding such conditions you make sure the field data gets loaded – Rick B Mar 24 at 15:17
  • thanks, but the user picture in drupal isn't a field... – dnoncoder Mar 24 at 18:01
  • I see the picture field is a default and not a normal field. You can try the second answer mentioned here: drupal.stackexchange.com/questions/26395/… – Rick B Mar 24 at 20:26
  • Yes, I've seen that. The User Picture Field module. However in my case it's not a good solution (because of the way users upload images), so I'm still looking for different solution, to trigger a rule whenever the profile picture is updated. thanks. d – dnoncoder Apr 6 at 18:46
  • hey @dnoncoder, maybe you may get this to work with a variation of what I described in this answer. Your question is different, but I'd try to solve it with a similar "boolean trick field" (and possibly combine that with using the "Conditional Rules" module (for more info about that module, refer to this question also. – Pierre.Vriens Apr 9 at 18:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.