function shareaholic_init in Share Buttons, Related Posts, Content Analytics - Shareaholic 8
Same name and namespace in other branches
- 7.3 shareaholic.module \shareaholic_init()
Implements hook_init() This gets called at the beginning of a non-cached page request Ideal for setting response headers
Force edge mode for IE so that our apps will look nicer
File
- ./
shareaholic.module, line 39 - Allows site owner to add share buttons/recommendations on their website
Code
function shareaholic_init() {
ShareaholicPublic::set_xua_compatible_header();
if (!ShareaholicUtilities::is_admin_page()) {
ShareaholicPublic::insert_dns_snippet();
ShareaholicPublic::insert_content_meta_tags();
ShareaholicPublic::insert_script_tag();
ShareaholicPublic::insert_og_tags();
}
else {
// execute post install functions
ShareaholicAdmin::post_install();
}
}