Hello,
I was trying to do a very simple thing which turned out to be a major obstacle...
All I am after is presenting the 'request new password' form within it's own block. For that end I placed the following code within a new block:
print drupal_get_form('user_pass');
user_pass is supposed to be the form_id of the desired form.
On D5 I see it is working but no matter what I did on D6 I get the message:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'user_pass' was given in D:\MyDocuments\70_MyWebSites\drupal_sandbox_6\includes\form.inc on line 366.
When trying to print the forms 'user_login' or 'user_register' there was no problem.
What am I doing wrong?
Thanks!
Comments
Comment #1
shxcraw CreditAttribution: shxcraw commentedHello, you should include user.pages.inc module, i had the same situation and it helped.
Comment #2
udig CreditAttribution: udig commentedshxcraw, thanks a lot.
Comment #3
bartclarkson CreditAttribution: bartclarkson commentedthis helped me too.
Comment #4
john.arroyo CreditAttribution: john.arroyo commentedThis saved me some migration time, thanks
Comment #5
Dave ReidComment #7
interfaced CreditAttribution: interfaced commentedAmazing! Thanks for this fix!
Comment #8
Mr.vantri CreditAttribution: Mr.vantri commentedThanks you!
Comment #9
alexmoreno CreditAttribution: alexmoreno commented#1 worked perfectly, thank a lot :-)
Comment #10
mahdisfax CreditAttribution: mahdisfax commentedthanks it's help me.
Comment #11
gskharmujai CreditAttribution: gskharmujai commentedBeen struggling with this issue for almost 24hrs. now i got it. Thank you!