You are here

public static function ShareaholicUtilities::accept_terms_of_service in Share Buttons, Related Posts, Content Analytics - Shareaholic 8

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

Accepts the terms of service by setting the variable to true

1 call to ShareaholicUtilities::accept_terms_of_service()
shareaholic_tos_modal_form_submit in includes/shareaholic_tos_modal.php
Submit handler for the ToS modal: update values in the database By storing 'true' for shareaholic_has_accepted_tos and get or create an api key if it does not already exists

File

./utilities.php, line 30

Class

ShareaholicUtilities

Code

public static function accept_terms_of_service() {
  variable_set('shareaholic_has_accepted_tos', true);
  ShareaholicUtilities::log_event('AcceptedToS');
}