You are here

function context_ui_deactivate in Context 7.3

A page call back to deactivate the context_ui inline editor dialog. This is semi unecessary as context editor will auto deactivate upon going to any page other than the destination from the start. However, its useful as a place to navigate to when deactivating context_ui_editor

1 string reference to 'context_ui_deactivate'
context_ui_menu in context_ui/context_ui.module
Implementation of hook_menu().

File

context_ui/context_ui.module, line 398

Code

function context_ui_deactivate() {
  if (isset($_GET['destination']) && !url_is_external($_GET['destination'])) {
    $_SESSION['context_ui_active'] = FALSE;
    drupal_goto($_GET['destination']);
  }
}