You are here

function user_login_register in OM Tools 6.2

Same name and namespace in other branches
  1. 8.2 tools/user/user.inc \user_login_register()
  2. 8 om_tools.module \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

tools/user/user.inc, line 380
User Tools

Code

function user_login_register() {
  $om_tools_values = variable_get('om_tools', '');
  $user_defaults = $om_tools_values['user'];
  $login_title = $user_defaults['user_login_title'];
  $register_title = $user_defaults['user_register_title'];
  $out = '';
  $out .= '<table class="user-login-register"><tr><td class="user-login-col">';
  $out .= '<h2 class="login-title">' . $login_title . '</h2>';
  $out .= drupal_get_form('user_login');
  $out .= '</td><td class="user-register-col">';
  $out .= '<h2 class="login-title">' . $register_title . '</h2>';
  $out .= drupal_get_form('user_register');
  $out .= '</td></tr></table>';
  drupal_set_title(t(''));
  return $out;
}