function shareaholic_tos_modal_form_submit in Share Buttons, Related Posts, Content Analytics - Shareaholic 8
Same name and namespace in other branches
- 7.3 includes/shareaholic_tos_modal.php \shareaholic_tos_modal_form_submit()
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
- includes/
shareaholic_tos_modal.php, line 38 - This file is responsible for the terms of service modal popup (rendering/and handling submit)
Code
function shareaholic_tos_modal_form_submit($form, &$form_state) {
ShareaholicUtilities::accept_terms_of_service();
ShareaholicUtilities::get_or_create_api_key();
}