drupal7 自定义登录&找回密码页面,注意事项

1.登录页面的 $form['form_id'] 和 $form['form_build_id'],是这样输出的:

 

  <?php print drupal_render($form['form_id']);?>
  <?php print drupal_render($form['form_build_id']);?>

 

 

2.密码找回页面是这样的

  <?php print render($form['form_id']);?>
  <?php print render($form['form_build_id']);?>

 

发现哪儿不同了吗?登录是drupal_render,而找回密码是render,写错的话,提交不成功,页面会刷新,但是没有任何响应,至于原因,以后再研究吧~~~~~

posted @ 2017-06-29 17:59  jiafeng  阅读(551)  评论(0编辑  收藏  举报