You are here

function shareaholic_reset_plugin_form_submit in Share Buttons, Related Posts, Content Analytics - Shareaholic 8

Same name and namespace in other branches
  1. 7.3 includes/shareaholic_reset_plugin_form.php \shareaholic_reset_plugin_form_submit()

The submit handler for the reset plugin form When the user resets the plugin, destroy settings and get a new api key

File

includes/shareaholic_reset_plugin_form.php, line 36
This file is responsible for the reset plugin form (rendering/handling)

Code

function shareaholic_reset_plugin_form_submit($form, &$form_state) {
  ShareaholicUtilities::reset_settings();
  drupal_set_message(t('Module has been reset. Please clear your cache.'), 'status');
}