You are here

function uc_product_update_7003 in Ubercart 7.3

Set default display settings for product teasers.

File

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

Code

function uc_product_update_7003() {
  $types = db_query("SELECT pcid FROM {uc_product_classes}")
    ->fetchCol();
  array_unshift($types, 'product');
  foreach ($types as $type) {
    uc_product_set_teaser_display($type);
  }
  variable_del('uc_product_field_enabled');
  variable_del('uc_product_field_weight');
  return t('Set display settings for product teasers.');
}