You are here

function login_shadowbox_register in Shadowbox 7.4

1 string reference to 'login_shadowbox_register'
login_shadowbox_menu in login_shadowbox/login_shadowbox.module
Implementation of hook_menu()

File

login_shadowbox/login_shadowbox.pages.inc, line 35

Code

function login_shadowbox_register() {
  _login_shadowbox_js_css();

  // REGISTRATION FORM BEGIN
  $register_form = '<div id="shadowbox_register" class="shadowbox_login_wrapper">';
  $register_form .= '<button class="shadowbox_login_close_button">x</button>';
  if (user_register_access()) {
    $register_form .= drupal_render(drupal_get_form("user_register_form"));
  }
  $register_form .= '</div>';

  // REGISTRATION FORM END
  print theme('login_shadowbox_page', array(
    'title' => 'Registration',
    'content' => $register_form,
  ));
  return NULL;
}