2017-01-11 4 views

答えて

1

あなたはhook_form_alterでフォームを上書きすることができます。あなたのテーマのtemplate.php

、あなたが追加する必要があります

function your_module_form_alter(&$form, $form_state, $form_id) { 
    if ($form_id == 'user_register') { 
    drupal_set_title(t('Create student Details')); 
    } 
    elseif ($form_id == 'user_pass') { 
    drupal_set_title(t('Request new password')); 
    } 
    elseif ($form_id == 'user_login') { 
    drupal_set_title(t('Log in')); 
    } 
} 
+0

ありがとうございました。以前作成したメニューにエラーがあり、デフォルトのタイトル/ブランディングをオーバーランされたようです。私はそれを理解して解決しました。本当にありがとう。 –

関連する問題