跳转到主要内容

如何更改注册页面中的 form 描述信息

   问:         如何更改注册页面中的form描述信息?

   答:         思路:在template.php中,预处理的时候,截获变量$variables,然后就可以随意更改了。在theme目录下建了一个文件,命名为user-register.tpl.php,然后在template.php中加phptemplate_preprocess_user_register(&$variables)函数,接着用theme函数进行声名,把garland_theme()函数中加入: return array( 'user_register' => array('template' => 'user-register','arguments' => array('form' => NULL) ), );     再清空一个缓存,就可以显示了。

文章分类