Maybe sometimes we want a custom style for our Drupal login page, different with the existing default login page in Drupal 7, whether it's for a personal project or client requests.
Read more http://www.danpros.com/2013/01/creating-custom-user-login-page-in.html
Below are the complete code.
Paste in your template.php:
function yourthemename_theme() {
$items = array();
// create custom user-login.tpl.php
$items['user_login'] = array(
'render element' => 'form',
'path' => drupal_get_path('theme', 'yourthemename') . '/templates',
'template' => 'user-login',
'preprocess functions' => array(
'yourthemename_preprocess_user_login'
),
);
return $items;
}Paste in your user-login.tpl.php:
<?php ?>
<?php print drupal_render($form['name']);?>
<?php print drupal_render($form['pass']);?>
<?php print drupal_render($form['form_build_id']); ?>
<?php print drupal_render($form['form_id']); ?>
<?php print drupal_render($form['actions']);?>



thanks
Thank you for this information Dan
Septictankbiorich.comBiotech System
SeptictankbiorichBioRich, Biotech, Biofil
Surya Utama FibertechFibreglass
wow great, this i come from .
wow great, this i come from ...
Berita Terbaru Berita Terkini
Simple step but not so easy
Simple step but not so easy
Wayan Katel,Film Terbaru,Wayan Upadana Blog,ebook teknisi komputer
I saw someone recommended the
I saw someone recommended the new plugin for this login page. Does anyone know this?
tucson bankruptcy attorney