You are here

function user_login_register in OM Tools 8

Same name and namespace in other branches
  1. 8.2 tools/user/user.inc \user_login_register()
  2. 6.2 tools/user/user.inc \user_login_register()
  3. 6 om_tools.module \user_login_register()
  4. 7.2 tools/user/user.inc \user_login_register()
  5. 7 om_tools.module \user_login_register()

User Login and Register page.

1 string reference to 'user_login_register'
om_tools_menu in ./om_tools.module
Implementation of hook_menu().

File

./om_tools.module, line 51
This is a collection of OM Tools.

Code

function user_login_register() {
  $login_title = variable_get('om_tools_user_login_title', 'User Login');
  $login_form = drupal_get_form('user_login');
  $register_title = variable_get('om_tools_user_register_title', 'User Register');
  $register_form = drupal_get_form('user_register_form');
  $out = '';
  $out .= '<table class="user-login-register"><tr><td class="user-login-col">';
  $out .= '<h2 class="login-title">' . $login_title . '</h2>';
  $out .= drupal_render($login_form);
  $out .= '</td><td class="user-register-col">';
  $out .= '<h2 class="login-title">' . $register_title . '</h2>';
  $out .= drupal_render($register_form);
  $out .= '</td></tr></table>';
  drupal_set_title(t(''));
  return $out;
}