You are here

function uc_catalog_enable in Ubercart 7.3

Same name and namespace in other branches
  1. 5 uc_catalog/uc_catalog.module \uc_catalog_enable()
  2. 6.2 uc_catalog/uc_catalog.module \uc_catalog_enable()

Implements hook_enable().

File

uc_catalog/uc_catalog.install, line 11
Install, update and uninstall functions for the uc_catalog module.

Code

function uc_catalog_enable() {
  foreach (uc_product_types() as $type) {
    uc_catalog_add_node_type($type);
  }
  uc_catalog_add_image_field();
}