I'm trying to theme the login user page and it seems that I'm missing something and I can't figure out what it is.
here is what I did:
I've added this code to my template.php:
function mxblog_theme() { $items = array(); // create custom user-login.tpl.php $items['user_login'] = array( 'render element' => 'form', 'path' => drupal_get_path('theme', 'mxblog') . '/templates', 'template' => 'page--user--login', 'preprocess functions' => array( 'mxblog_preprocess_user_login' ), ); return $items; }
and this that I'm trying to render in the page--user--login.tpl.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']);
user-login.tpl.php
. Did you clear all Drupal caches a few times? Where are you putting that template? Can you put a kpr function in the template to see what it prints out?