function user_login_register in OM Tools 8.2
Same name and namespace in other branches
- 8 om_tools.module \user_login_register()
- 6.2 tools/user/user.inc \user_login_register()
- 6 om_tools.module \user_login_register()
- 7.2 tools/user/user.inc \user_login_register()
- 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 378 - 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'];
$login_form = drupal_get_form('user_login');
$register_title = $user_defaults['user_register_title'];
$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;
}