You are here

function uc_catalog_repair_field in Ubercart 7.3

Repairs the catalog taxonomy field if it is lost or deleted.

1 string reference to 'uc_catalog_repair_field'
uc_catalog_menu in uc_catalog/uc_catalog.module
Implements hook_menu().

File

uc_catalog/uc_catalog.admin.inc, line 107
Catalog administration menu items.

Code

function uc_catalog_repair_field() {
  foreach (uc_product_types() as $type) {
    uc_catalog_add_node_type($type);
  }
  uc_catalog_add_image_field();
  drupal_set_message(t('The catalog taxonomy reference field has been repaired.'));
  drupal_goto('admin/structure/types/manage/product/fields');
}