You are here

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

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

Update multiple keys of the settings object Works like the Wordpress function for Shareaholic

Parameters

array $array an array of options to update:

Return value

bool

6 calls to ShareaholicUtilities::update_options()
ShareaholicUtilities::api_key_verified in ./utilities.php
Checks whether the api key has been verified using the rails endpoint. Once the key has been verified, we store that away so that we don't have to check again.
ShareaholicUtilities::get_or_create_api_key in ./utilities.php
Returns the api key or creates a new one.
ShareaholicUtilities::set_version in ./utilities.php
Sets the current version of this module in the database
ShareaholicUtilities::share_counts_api_connectivity_check in ./utilities.php
Share Counts API Connectivity check
ShareaholicUtilities::turn_on_locations in ./utilities.php
Passed an array of location names mapped to ids per app.

... See full list

File

./utilities.php, line 78

Class

ShareaholicUtilities

Code

public static function update_options($array) {
  $old_settings = self::get_settings();
  $new_settings = self::array_merge_recursive_distinct($old_settings, $array);
  variable_set('shareaholic_settings', $new_settings);
}