You are here

function eloqua_set_last_post_time in Eloqua 6

Sets the last post time

Parameters

$value int: Timestamp

Return value

boolean Successful update

File

./eloqua.inc, line 110

Code

function eloqua_set_last_post_time($value) {
  if (!is_numeric($value)) {
    $message = t('Invalid value set for post time: !value');
    $variables = array(
      '!value' => '<pre>' . var_export($value, TRUE) . '</pre>',
    );
    watchdog(ELOQUA_WATCHDOG_CATEGORY, $message, $variables, WATCHDOG_NOTICE);
    return FALSE;
  }
  variable_set(ELOQUA_VARIABLE_LAST_POST_TIME, $value);
  return TRUE;
}