function uc_product_power_tools_update_5 in Ubercart Product Power Tools 6
Same name and namespace in other branches
- 6.2 uc_product_power_tools.install \uc_product_power_tools_update_5()
File
- ./
uc_product_power_tools.install, line 333 - Install, update, and uninstall functions for the uc_product_power_tools module.
Code
function uc_product_power_tools_update_5() {
$ret = array();
$test = db_fetch_array(db_query("SELECT enabled FROM {uc_power_tools} WHERE pcid = 'product'"));
if ($test['enabled']) {
watchdog('Product Power Tools', 'Entry for Default Product class already exists in database');
}
else {
watchdog('Product Power Tools', 'Added Default Product class to Power Tools database table');
$ret[] = update_sql("INSERT INTO {uc_power_tools} (`pcid`, `enabled`) VALUES ('product', '0')");
}
return $ret;
}