(Using Adaptive Theme) I want a new and custom user login page. So, put this code in my template.php:
function mythemename_theme() {
$items = array();
// create custom user-login.tpl.php
$items['user_login'] = array(
'render element' => 'form',
'path' => drupal_get_path('theme', 'mythemename') . '/templates',
'template' => 'user-login',
'preprocess functions' => array(
'mythemename_preprocess_user_login'
),
);
return $items;
}
Changed mythemename to my custom theme name. And created user-login.tpl.php files and put this code:
<?php
print drupal_render($form['name']);
print drupal_render($form['pass']);
print drupal_render($form['form_build_id']);
print drupal_render($form['form_id']);
print drupal_render($form['actions']);
?>
Lastly, cleared my site cache. But when i click mysite.com/user login page not changed.
Where the error am I doing? How can I solve this problem?