1 bootstrap.inc backdrop_is_dialog()

Detects if this is a dialog HTTP request.

File

core/includes/bootstrap.inc, line 4323
Functions that need to be loaded on every Backdrop request.

Code

function backdrop_is_dialog() {
  return !empty($_POST) && !empty($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.backdrop-dialog') === 0;
}