You are here

function amazon_update_6014 in Amazon Product Advertisement API 6

Implementation of a default image requires that all the images be updated. Here we'll just set the timestamp to 0 and then let cron finish the job.

File

./amazon.install, line 331

Code

function amazon_update_6014() {

  // Force all data to be updated from Amazon so that images can be properly updated.
  $ret[] = update_sql('UPDATE {amazon_item} SET timestamp = 0;');
  drupal_set_message(t('If you have enabled a default image, you may need to wait for a few cron runs (or run cron a few times) before all images are properly set up.'));
  return $ret;
}