You are here

function uc_store_install in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 uc_store/uc_store.install \uc_store_install()
  2. 5 uc_store/uc_store.install \uc_store_install()
  3. 6.2 uc_store/uc_store.install \uc_store_install()

Implements hook_install().

File

uc_store/uc_store.install, line 135
Install, update, and uninstall functions for the uc_store module.

Code

function uc_store_install() {

  // Set mail handler for all Ubercart modules
  variable_set('mail_system', array_merge(variable_get('mail_system', array(
    'default-system' => 'DefaultMailSystem',
  )), array(
    'uc_cart' => 'UbercartMailSystem',
    'uc_order' => 'UbercartMailSystem',
    'uc_file' => 'UbercartMailSystem',
    'uc_roles' => 'UbercartMailSystem',
    'uc_stock' => 'UbercartMailSystem',
    'uc_store' => 'UbercartMailSystem',
  )));

  // Set the default store date format.
  variable_set('date_format_uc_store', 'm/d/Y');

  // Install United States and Canada by default.
  $path = drupal_get_path('module', 'uc_store');
  require_once $path . '/countries/united_states_840_1.cif';
  require_once $path . '/countries/canada_124_2.cif';
  united_states_install();
  canada_install();
}