By eugenechechel on
I want to change a look of my login form. I have read many articles there about Customizing the login form like this http://drupal.org/node/19855 and may others.
in short
I modify template.php then user_login.tpl.php in my theme. But it does not change my login form
As for this article I tried to modify template.php with this code
function acquia_marina_theme() {
return array(
'user_login' => array(
'template' => 'user-login',
'arguments' => array('form' => NULL),
),
// other theme registration code...
);
}
function acquia_marina_preprocess_user_login(&$variables) {
$variables['intro_text'] = t('This is my awesome login form');
$variables['rendered'] = drupal_render($variables['form']);
}
in /sites/all/themes/acquia_marina/template.php
then I added some text to user-login.tpl.php and my login form didn't changed.
Can some one explain to me what I do wrong or what should I check ?
Comments
Hi, this code is for Druapl 6
Hi,
this code is for Druapl 6 version.
Add below code in your template.php file and then clear cache form administrator->site configuration->performance->clear cache
And see the login page http://www.example.com/drupal-6.13/user, it should work.
**Also check if acquia_marina is the right theme name.
Regards
Rashmi
I have the same problem ,but
I have the same problem ,but only in Drupal 6.13, in 6.12 it's work. Please help!!!
same problem - the forms are
same problem - the forms are not rendered
same issue
same issue
I also think it is a same
I also think it is a same issue.
中古車買取
If you simply want to prepend
If you simply want to prepend some additional text then just use the default login block and with a hook_form_alter you will be able to add or alter the additional text by using the form API - Please see http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7