2017-01-11 35 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

謝謝。似乎我之前創建的菜單出現了錯誤,並且已超出默認標題/品牌。我計算出來並解決了它。謝謝一堆。 –