You are here

function uc_product_update_6008 in Ubercart 6.2

File

uc_product/uc_product.install, line 369
Install, update and uninstall functions for the uc_product module.

Code

function uc_product_update_6008() {
  $ret = array();
  if (db_table_exists('imagecache_preset')) {
    $result = db_result(db_query("SELECT COUNT(presetid) FROM {imagecache_preset} WHERE presetname = 'product_full'"));
    if (!$result) {
      $ret[] = update_sql("INSERT INTO {imagecache_preset} (presetname) VALUES ('product_full')");
    }
  }
  return $ret;
}