How to load a second user log in form? I have used default user login block on top navigation. I need to load another log in form on some pages.

I am trying to load the form by

drupal_get_form('user-login')


I get the following error:


  Notice: Undefined index: user-login in drupal_retrieve_form() (line
  763 of /path/to/drupal/includes/form.inc). Warning:
  call_user_func_array() expects parameter 1 to be a valid callback,
  function 'user-login' not found or invalid function name in
  drupal_retrieve_form() (line 798 of
  /path/to/drupal/includes/form.inc).


Is it possible to load a second log in form? (Drupal 7)
The key point in the error message is:


  ...expects parameter 1 to be a valid callback, function 'user-login' not
  found


You need to use:

drupal_get_form('user_login');


Where user_login is the form builder function in this case.

e.g:

print render(drupal_get_form('user_login'));