You are here

function disqus_closewindow in Disqus 7

Same name and namespace in other branches
  1. 6 disqus.admin.inc \disqus_closewindow()

Menu callback; Automatically closes the window after the user logs in.

Return value

Confirmation message and link that closes overlay window.

1 string reference to 'disqus_closewindow'
disqus_menu in ./disqus.module
Implements hook_menu().

File

./disqus.module, line 93
The Disqus Drupal module.

Code

function disqus_closewindow() {
  drupal_add_js('window.close();', 'inline');
  return t('Thank you for logging in. Please close this window, or <a href="@clickhere">click here</a> to continue.', array(
    '@clickhere' => 'javascript:window.close();',
  ));
}