Update @ 2013-05-30: The piece of code in this post works on Drupal 6. If you are looking for Drupal 7 solution, please refer to the comment made by Matthias. Thanks Matthias. =D
If you want to print the Forgot Password form with drupal_get_form(), you have to include the user module.
Try the following piece of code.
<?php // Drupal Forgot Password Form module_load_include('inc', 'user', 'user.pages'); print drupal_get_form('user_pass'); ?>
Done =)
Reference: printing the ‘request-new-password’ form
Is this for Drupal 6 or Drupal 7 ?
LikeLike
I think it should work on D7 too.
LikeLike
Thanks for the snippet!
For D7 I had to use drupal_render to render the form:
LikeLike
Thanks for your code. i have updated my post. =D
LikeLike
thanks alot bro that was im looking for
LikeLike