function references_dialog_in_dialog in References dialog 7
Check if we are in a references dialog.
Return value
boolean if we are in a dialog.
5 calls to references_dialog_in_dialog()
- references_dialog_entity_insert in ./
references_dialog.module - Implements hook_entity_insert().
- references_dialog_entity_update in ./
references_dialog.module - Implements hook_entity_update().
- references_dialog_init in ./
references_dialog.module - Implements hook_init().
- references_dialog_page_alter in ./
references_dialog.module - Implements hook_page_alter().
- references_dialog_redirect_page in ./
references_dialog.module - Page callback for our redirect page.
File
- ./
references_dialog.module, line 649 - This the main module file.
Code
function references_dialog_in_dialog() {
return isset($_GET['render']) && $_GET['render'] == 'references-dialog' || strstr(current_path(), 'references-dialog/search') !== FALSE;
}