You are here

public function LikeBtn::runSyncVotes in Like Button 7

Same name and namespace in other branches
  1. 8.2 likebtn.php \LikeBtn::runSyncVotes()

Running votes synchronization.

File

./likebtn.php, line 28
LikeBtn like button.

Class

LikeBtn

Code

public function runSyncVotes() {
  if (!self::$synchronized && variable_get('likebtn_account_data_email') && variable_get('likebtn_account_data_api_key') && $this
    ->timeToSyncVotes(variable_get('likebtn_sync_inerval', 60) * 60) && function_exists('curl_init')) {
    $this
      ->syncVotes(variable_get('likebtn_account_data_email'), variable_get('likebtn_account_data_api_key'), variable_get('likebtn_account_site_id'));
  }
}