You are here

function mostpopular_get_throttle in Drupal Most Popular 6

Gets the throttle setting for the given service and interval.

Parameters

integer $sid: The service ID.

integer $iid: The interval ID.

Return value

string The throttle setting for the given service and interval. If there is one, it will be a string parseable by strtotime(). Otherwise, returns NULL.

File

./mostpopular.api.php, line 309
Provides functions for other modules to use to interact with the Most Popular data.

Code

function mostpopular_get_throttle($sid, $iid) {
  $run = MostPopularLastRun::fetch($sid, $iid);
  if (isset($run)) {
    return $run->throttle;
  }
  return NULL;
}