我正在使用drupal 6.16.以下hook_form_alter代码无效.我只是想在用户登录表单的提交按钮上将"登录"更改为"登录"
<?php
//$Id$
function helloworld_form_alter($form_id,&$form) {
switch ($form_id) {
case 'user_login_form':
// Change 'Log in' to 'Sign in'.
$form['submit']['#value'] = t('Sign in');
break;
}
}
Run Code Online (Sandbox Code Playgroud)
有任何解决这个问题的方法吗 ?
请帮忙.谢谢.