function uc_product_update_6007 in Ubercart 6.2
Updates old product images to the imagefield widget type.
File
- uc_product/
uc_product.install, line 359 - Install, update and uninstall functions for the uc_product module.
Code
function uc_product_update_6007() {
$ret = array();
if (db_table_exists('content_node_field_instance')) {
$ret[] = update_sql("UPDATE {content_node_field_instance} SET widget_type = 'imagefield_widget' WHERE field_name = 'field_image_cache'");
}
return $ret;
}