function login_shadowbox_login

cis7 login_shadowbox.pages.inc login_shadowbox_login()
2 string references to 'login_shadowbox_login'
login_shadowbox_menu in sites/all/modules/local_contrib/shadowbox/login_shadowbox/login_shadowbox.module
Implementation of hook_menu()
login_shadowbox_settings in sites/all/modules/local_contrib/shadowbox/login_shadowbox/login_shadowbox.admin.inc
FAPI definition for the Shadowbox login settings form.

File

sites/all/modules/local_contrib/shadowbox/login_shadowbox/login_shadowbox.pages.inc, line 3

Code

function login_shadowbox_login() {

  _login_shadowbox_js_css();

  // LOGIN FORM BEGIN
  $login_form = '<div id="shadowbox_login" class="shadowbox_login_wrapper">';

  $login_form .= '<button class="shadowbox_login_close_button">x</button>';

  // add login form
  $form = drupal_get_form("user_login");
  $login_form .= drupal_render($form);

  // add the registration and reset password links
  if (variable_get('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL)) {
    $items[] = l(t('Create new account'), 'user/register', array('attributes' => array('title' => t('Create a new user account.'))));
  }
  $items[] = l(t('Request new password'), 'user/password', array('attributes' => array('title' => t('Request new password via e-mail.'))));
  $links['links'] = array('#markup' => theme('item_list', array('items' => $items)));
  $login_form .= drupal_render($links);

  $login_form .= '</div>';
  // LOGIN FORM END

  print theme('login_shadowbox_page', array(
    'title' => 'Login',
    'content' => $login_form,
  ));

  return NULL;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.