You are here

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

Same name and namespace in other branches
  1. 7.3 shareaholic.install \shareaholic_enable()

Implements hook_enable(). When the module is enabled, call CM single domain worker and log the enable event

File

./shareaholic.install, line 46

Code

function shareaholic_enable() {
  if (ShareaholicUtilities::has_accepted_terms_of_service() && ShareaholicUtilities::get_option('api_key')) {
    ShareaholicContentManager::single_domain_worker();
  }
  ShareaholicUtilities::log_event('Activate');
}