function uc_discounts_install in Ubercart Discounts (Alternative) 7.2
Same name and namespace in other branches
- 6.2 uc_discounts/uc_discounts.install \uc_discounts_install()
Implements hook_install().
File
- uc_discounts/
uc_discounts.install, line 492 - Install, update, and uninstall functions for uc_discounts module.
Code
function uc_discounts_install() {
// Weight must be less than uc_payment's.
db_update('system')
->fields(array(
'weight' => -10,
))
->condition('name', 'uc_discounts')
->execute();
// 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"),
)));
}