function uc_product_power_tools_install in Ubercart Product Power Tools 6
Same name and namespace in other branches
- 6.2 uc_product_power_tools.install \uc_product_power_tools_install()
- 7 uc_product_power_tools.install \uc_product_power_tools_install()
Implements hook_install().
File
- ./
uc_product_power_tools.install, line 252 - Install, update, and uninstall functions for the uc_product_power_tools module.
Code
function uc_product_power_tools_install() {
drupal_install_schema('uc_product_power_tools');
db_query("UPDATE {system} SET weight = 10 WHERE name = 'uc_product_power_tools'");
db_query("REPLACE INTO {uc_power_tools} (`pcid`, `enabled`) VALUES ('product', 0)");
}