How to move the login form to the header? I need help in moving over the User login form to the header of the same page in Drupal 7. I am new to Drupal and I am not very familiar with the Drupal hooks yet. How should I achieve this?
This is what I have tried so far.
template.php
function bklyn_theme() {
  $items = array();
  // create custom user-login.tpl.php
  $items['user_login'] = array(
  'render element' =&gt; 'form',
  'path' =&gt; drupal_get_path('theme', 'bklyn') . '/templates',
  'template' =&gt; 'user-login',
  'preprocess functions' =&gt; array(
  'bklyn_preprocess_user_login'
  ),
 );
 
 $items['user_pass'] = array(
 'render element' =&gt; 'form',
 'path' =&gt; drupal_get_path('theme', 'bklyn') . '/templates',
 'template' =&gt; 'user-pass',
 'preprocess functions' =&gt; array(
 'bklyn_preprocess_user_pass'
 ),
 );
 
return $items;
}

function bklyn_preprocess_user_login(&amp;$vars) {
  $vars['intro_text'] = t('Username');
}

function bklyn_preprocess_user_pass(&amp;$vars) {
  $vars['intro_text'] = t('Password');
}

I am not sure how I can integrate the login to show up in the header.
Before

After
from the website/user. I need the logon to place on the header content
  area and be able to style it.


All you have to do is edit your theme's page.tpl.php

Since the form gets displayed as the page content:

in the header section of your template file add:

&lt;?php if (current_path() == 'user'): ?&gt;
     &lt;?php print render($page['content']);?&gt;
&lt;?php endif; ?&gt;


Then find the original &lt;?php print render($page['content']); ?&gt; and add:

  &lt;?php if (current_path() != 'user'): ?&gt;
     &lt;?php print render($page['content']);?&gt;
  &lt;?php endif; ?&gt;


OR... do the if (current_path() != 'user') { for everything inside the #main-wrapper

OR... use the if statement to add a div class that will colour your #main-wrapper background to red.