You are here

function disqus_closewindow in Disqus 6

Same name and namespace in other branches
  1. 7 disqus.module \disqus_closewindow()

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

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

File

./disqus.admin.inc, line 135

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();',
  ));
}