Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How can Add Event ( after user Request new password)?
How can Add Event ( after user Request new password)?
Comments
Comment #2
Hadiseh CreditAttribution: Hadiseh commentedComment #3
TR CreditAttribution: TR commentedDrupal core does not have any hooks for password reset. So you have to write some code. What you need to do is to
hook_form_alter()
theuser_pass
form and add a submit handler which does a rules_invoke_event() of your own custom event (defined by hook_rules_event_info().