public static function ShareaholicPublic::set_xua_compatible_header in Share Buttons, Related Posts, Content Analytics - Shareaholic 8
Same name and namespace in other branches
- 7.3 public.php \ShareaholicPublic::set_xua_compatible_header()
Inserts the xua-compatible header if the user has accepted ToS and has API key
1 call to ShareaholicPublic::set_xua_compatible_header()
- shareaholic_init in ./
shareaholic.module - Implements hook_init() This gets called at the beginning of a non-cached page request Ideal for setting response headers
File
- ./
public.php, line 74
Class
- ShareaholicPublic
- This class is all about drawing the stuff in publishers' templates that visitors can see.
Code
public static function set_xua_compatible_header() {
if (ShareaholicUtilities::has_tos_and_apikey() && !drupal_get_http_header('X-UA-Compatible')) {
drupal_add_http_header('X-UA-Compatible', 'IE=edge');
}
}