Fix for Fix for Fix for Form theming

  1. <?php
  2. function formtheme_theme() {
  3.   return array(
  4.     'user_login' => array(
  5.       'arguments' => array('form' => array()),
  6.       'path' => drupal_get_path('theme', 'formtheme') . '/templates/overrides/forms',
  7.       'template' => 'user-login-form',
  8.     )
  9.   );
  10. }
  11.  
  12. function formtheme_preprocess_user_login($vars) {
  13.   $vars['content'] = drupal_render($vars['form']);
  14. }
  15. ?>

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.