function helper_ajax_render_alter in Helper 7
Implements hook_ajax_render_alter().
File
- ./
helper.module, line 181
Code
function helper_ajax_render_alter() {
// Ensure a proper AJAX header is always provided.
// @see https://www.drupal.org/node/1710710
if (is_null(drupal_get_http_header('Content-Type'))) {
drupal_add_http_header('Content-Type', 'application/json; charset=utf-8');
}
}