public static function ShareaholicUtilities::is_admin_page in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3
Same name and namespace in other branches
- 8 utilities.php \ShareaholicUtilities::is_admin_page()
Checks if the current page is an admin page
Return value
mixed: returns 1 if matched, 0 if no match, false if error occurs
4 calls to ShareaholicUtilities::is_admin_page()
- ShareaholicAdmin::show_pending_update_notice in ./
admin.php - Show the pending update notice on admin pages
- ShareaholicAdmin::show_terms_of_service_notice in ./
admin.php - Show the terms of service notice on admin pages except for shareaholic admin settings page
- ShareaholicPublic::insert_script_tag in ./
public.php - Inserts the script code snippet into the head of the public pages of the site if they have accepted ToS and have apikey
- 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
- ./
utilities.php, line 546
Class
Code
public static function is_admin_page() {
return path_is_admin(current_path());
}