function user_login


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 user.module user_login($form, &$form_state)
cle7 user.module user_login($form, &$form_state)
elmsmedia7 user.module user_login($form, &$form_state)
icor7 user.module user_login($form, &$form_state)
meedjum_blog7 user.module user_login($form, &$form_state)
mooc7 user.module user_login($form, &$form_state)

Form builder; the main user login form.

Related topics

10 string references to 'user_login'
bakery_form_alter in sites/all/modules/ulmus/bakery/bakery.module
Implements hook_form_alter().
bakery_login in sites/all/modules/ulmus/bakery/bakery.module
Special Bakery login callback authenticates the user and returns to slave.
bakery_user_external_login in sites/all/modules/ulmus/bakery/bakery.module
Perform standard Drupal login operations for a user object.
ctools_ajax_sample_login in sites/all/modules/ulmus/ctools/ctools_ajax_sample/ctools_ajax_sample.module
A modal login callback.
hook_page_alter in modules/system/system.api.php
Perform alterations before a page is rendered.

... See full list


modules/user/user.module, line 2070
Enables the user registration and login system.


function user_login($form, &$form_state) {
  global $user;

  // If we are already logged on, go to the user page instead.
  if ($user->uid) {
    drupal_goto('user/' . $user->uid);

  // Display login form:
  $form['name'] = array(
    '#type' => 'textfield',
    '#title' => t('Username'),
    '#size' => 60,
    '#maxlength' => USERNAME_MAX_LENGTH,
    '#required' => TRUE,

  $form['name']['#description'] = t('Enter your @s username.', array('@s' => variable_get('site_name', 'Drupal')));
  $form['pass'] = array(
    '#type' => 'password',
    '#title' => t('Password'),
    '#description' => t('Enter the password that accompanies your username.'),
    '#required' => TRUE,
  $form['#validate'] = user_login_default_validators();
  $form['actions'] = array('#type' => 'actions');
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Log in'),

  return $form;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.