You are here

function ajax_register_get_ajax_login_form in Ajax Login/Register 6.2

Same name and namespace in other branches
  1. 6 ajax_register.module \ajax_register_get_ajax_login_form()
1 string reference to 'ajax_register_get_ajax_login_form'
ajax_register_menu in ./ajax_register.module

File

./ajax_register.module, line 105

Code

function ajax_register_get_ajax_login_form() {

  //prints the html of the form to the ajax url request
  module_load_include('inc', 'user', 'user.pages');
  $login = drupal_get_form('user_login');
  $pass = drupal_get_form('user_pass');
  $forgot_title = t('Forgot Your Password');

  //print $login.'<br /><div><h3>'.$forgot_title.'</h3></div>'.$pass;
  print magic_tabs_get('ajax_register_tabs_callback', 1, 0, 0);
}