Customize Login Form
Keyser - July 2, 2009 - 22:36
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 ?

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
<?php
function acquia_marina_theme($existing, $type, $theme, $path) {
return array(
// tell Drupal what template to use for the user login form
'user_login' => array(
'template' => 'user_login',
'arguments' => array('form' => NULL),
),
);
}
?>
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