function uc_discounts_install in Ubercart Discounts (Alternative) 6.2
Same name and namespace in other branches
- 7.2 uc_discounts/uc_discounts.install \uc_discounts_install()
Implementation of hook_install().
File
- uc_discounts/
uc_discounts.install, line 473 - Install hooks for uc_discounts.module.
Code
function uc_discounts_install() {
drupal_install_schema("uc_discounts");
//Weight must be less than uc_payment's
db_query("UPDATE {system} SET weight=-10 WHERE name='uc_discounts'");
//Print out a nice message directing administrators towards the configuration screen.
drupal_set_message(st("UC Discounts (Alternative) settings are available under !link", array(
"!link" => l("Administer > Store administration > Discounts", "admin/store/uc_discounts"),
)));
}