You are here

public static function ShareaholicUtilities::has_accepted_terms_of_service in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3

Same name and namespace in other branches
  1. 8 utilities.php \ShareaholicUtilities::has_accepted_terms_of_service()

Returns whether the user has accepted our terms of service. If the user has accepted, return true otherwise return NULL

Return value

mixed (true or NULL)

7 calls to ShareaholicUtilities::has_accepted_terms_of_service()
ShareaholicAdmin::draw_modal_popup in ./admin.php
Outputs the actual html for either the terms_of_service modal or the failed_create_api_key modal depending on what is in the database
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
ShareaholicUtilities::has_tos_and_apikey in ./utilities.php
Check if the installation has accepted ToS and we created an apikey
shareaholic_admin_advanced.tpl.php in templates/shareaholic_admin_advanced.tpl.php

... See full list

File

./utilities.php, line 23

Class

ShareaholicUtilities

Code

public static function has_accepted_terms_of_service() {
  return variable_get('shareaholic_has_accepted_tos');
}