function uc_paypal_install in Ubercart 7.3
Same name and namespace in other branches
- 5 payment/uc_paypal/uc_paypal.install \uc_paypal_install()
- 6.2 payment/uc_paypal/uc_paypal.install \uc_paypal_install()
Implements hook_install().
File
- payment/
uc_paypal/ uc_paypal.install, line 115 - Install, update and uninstall functions for the uc_paypal module.
Code
function uc_paypal_install() {
$t = get_t();
db_merge('uc_order_statuses')
->key(array(
'order_status_id' => 'paypal_pending',
))
->insertFields(array(
'order_status_id' => 'paypal_pending',
'title' => $t('PayPal pending'),
'state' => 'post_checkout',
'weight' => 7,
'locked' => 1,
))
->updateFields(array(
'state' => 'post_checkout',
'locked' => 1,
))
->execute();
}