You are here

public function sweaver_plugin_toolbar::sweaver_menu_callback in Sweaver 7

The plugin does not really have a page of its own

Overrides sweaver_plugin::sweaver_menu_callback

File

plugins/sweaver_plugin_toolbar/sweaver_plugin_toolbar.inc, line 43
Toolbar plugin.

Class

sweaver_plugin_toolbar
@file Toolbar plugin.

Code

public function sweaver_menu_callback() {
  $session = isset($_SESSION['sweaver_plugin_toolbar_session_on']) ? $_SESSION['sweaver_plugin_toolbar_session_on'] : variable_get('sweaver_plugin_toolbar_session_default_on', TRUE);
  $_SESSION['sweaver_plugin_toolbar_session_on'] = !$session;

  // Go back to previous page.
  drupal_goto($_SERVER['HTTP_REFERER']);
}