Full page login form
pileq - May 15, 2008 - 09:27
Hello!
I'm trying to create customized login form that is displayed as a full screen login page. Something like windows login screen. I'm able to do this by creating page-login.tpl.php file in theme directory, but i have to create it as a module, so i can't create or modify anything else. Please help me :)

Solution is simple ...
Hi, you can define is the current page is frontpage or not by:
if(drupal_is_front_page())
{
print theme('page', drupal_login_form());
exit();
}
...or something like this.
in the body of any hook.
Enjoy!
Thanks for reply :) If i
Thanks for reply :)
If i solve it in that way functions like drupal_add_css does'n work, drupal build css also. I have to add css manually in content od login-page.tpl.php. Also all of drupal error messages aren't displayed, even if i add following code inside login-page.tpl.php:
<?phpif ($show_messages && $messages): print $messages; endif;
?>
What i want in module's directory is:
-login-page.module
-login-page.tpl.php
-style.css