function uc_order_install in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_order/uc_order.install \uc_order_install()
- 7.3 uc_order/uc_order.install \uc_order_install()
Implements hook_install().
File
- uc_order/
uc_order.install, line 576 - Install, update and uninstall functions for the uc_order module.
Code
function uc_order_install() {
drupal_install_schema('uc_order');
$t = get_t();
db_query("INSERT INTO {uc_order_statuses} (order_status_id, title, state, weight, locked) VALUES ('canceled', '%s', 'canceled', -20, 1);", $t('Canceled'));
db_query("INSERT INTO {uc_order_statuses} (order_status_id, title, state, weight, locked) VALUES ('in_checkout', '%s', 'in_checkout', -10, 1);", $t('In checkout'));
db_query("INSERT INTO {uc_order_statuses} (order_status_id, title, state, weight, locked) VALUES ('pending', '%s', 'post_checkout', 0, 1);", $t('Pending'));
db_query("INSERT INTO {uc_order_statuses} (order_status_id, title, state, weight, locked) VALUES ('processing', '%s', 'post_checkout', 5, 1);", $t('Processing'));
db_query("INSERT INTO {uc_order_statuses} (order_status_id, title, state, weight, locked) VALUES ('completed', '%s', 'completed', 20, 1);", $t('Completed'));
}