You are here

function _node_registration_request_is_ajax in Node registration 7

Helper: whether the current request is made with XHR.

File

includes/node_registration.api.inc, line 67
Registration API functions.

Code

function _node_registration_request_is_ajax() {
  return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest';
}