You are here

function eloqua_set_update_time_interval in Eloqua 6

Sets the update interval

Parameters

$seconds int: Number of seconds to elapse between cron pushes

Return value

boolean Successful Update

File

./eloqua.inc, line 151

Code

function eloqua_set_update_time_interval($seconds) {
  if (!is_numeric($seconds) || $seconds < 0) {
    $message = t('!method: Invalid value set for post time: !value');
    $variables = array(
      '!method' => __METHOD__,
      '!value' => '<pre>' . var_export($seconds, TRUE) . '</pre>',
    );
    watchdog(ELOQUA_WATCHDOG_CATEGORY, $message, $variables, WATCHDOG_NOTICE);
    return FALSE;
  }
  $seconds = (int) $seconds;
  variable_set(ELOQUA_VARIABLE_POST_INTERVAL, $seconds);
  return TRUE;
}