function context_ui_init in Context 7.3
Implemenation of hook_init().
If the session says we should have an active dialog set a context variable to tell everything else Ignores ajax requests.
File
- context_ui/
context_ui.module, line 411
Code
function context_ui_init() {
if (!empty($_SESSION['context_ui_active'])) {
$path = $_SESSION['context_ui_active'];
if ($path == request_path() || $path == drupal_get_path_alias() || $path == drupal_get_normal_path(request_path())) {
context_set('context_ui', 'context_ui_editor_present', TRUE);
}
}
// Turn off functionality has been moved to hook_page_build() to prevent non-pages from triggering it
}