You are here

function uc_product_image_defaults in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_product/uc_product.module \uc_product_image_defaults()
  2. 7.3 uc_product/uc_product.admin.inc \uc_product_image_defaults()

Sets up imagefield and imagecache for products.

Parameters

$checks: A bitmap describing the state of the image modules. Four checks are made to fill this bitmap: an imagefield exists, an imagefield is attached to product, the imagecache presets exist, and each preset has at least one action.

See also

uc_product_store_status()

1 string reference to 'uc_product_image_defaults'
uc_product_menu in uc_product/uc_product.module
Implements hook_menu().

File

uc_product/uc_product.admin.inc, line 532
Product administration menu items.

Code

function uc_product_image_defaults() {
  uc_product_add_default_image_field();
  drupal_set_message(t('Default image support configured for Ubercart products using CCK and ImageCache.'));
  drupal_goto('admin/store');
}