Redirect to login page if login fails from a login block? I have a login form block, when a user fail to login to the site I want to redirect him to the user/login page with the usual error message
You can do this by form_alter

function MODULE_NAME_form_alter(&amp;$form, $form_state, $form_id) {
  switch ($form_id) {
    case 'user_login_block':
      $form['#validate'][] = 'my_custom_login_val';
      break;
    default:
      break;
  }
}


function my_custom_login_val($form, &amp;$form_state) {
  $form = form_get_error($form['name']) . form_get_error($form['pass']);
  if($form != '') {
    $_GET['destination'] = 'user/login';
    drupal_goto('user/login');    
  }
}


If you need like after the correct login redirect to a page use Login Destination