You are here

public static function ShareaholicAdmin::update_check in Share Buttons, Related Posts, Content Analytics - Shareaholic 8

Same name and namespace in other branches
  1. 7.3 admin.php \ShareaholicAdmin::update_check()

Sends an event when the user has updated the Drupal module

2 calls to ShareaholicAdmin::update_check()
shareaholic_admin_advanced in ./shareaholic.module
Renders page for shareaholic advanced settings
shareaholic_admin_settings in ./shareaholic.module
Renders page for shareaholic app manager settings

File

./admin.php, line 137

Class

ShareaholicAdmin
This class takes care of all of the admin interface.

Code

public static function update_check() {
  $version = ShareaholicUtilities::get_option('version');
  if (ShareaholicUtilities::get_option('api_key') && $version != ShareaholicUtilities::get_version()) {
    ShareaholicUtilities::set_version(ShareaholicUtilities::get_version());
    ShareaholicUtilities::log_event('Upgrade', array(
      'previous_plugin_version' => $version,
    ));
  }
}