You are here

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

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

Deletes the settings option

2 calls to ShareaholicUtilities::destroy_settings()
ShareaholicUtilities::get_or_create_api_key in ./utilities.php
Returns the api key or creates a new one.
shareaholic_uninstall in ./shareaholic.install
Implements hook_uninstall(). When the user uninstalls the module, delete all shareaholic settings

File

./utilities.php, line 87

Class

ShareaholicUtilities

Code

public static function destroy_settings() {

  // Delete cloud site id
  ShareaholicUtilities::delete_api_key();

  // Delete local Drupal site id
  variable_del('shareaholic_settings');
}