You are here

function uc_fedex_init in FedEx Shipping 6.2

Same name and namespace in other branches
  1. 6 uc_fedex.module \uc_fedex_init()
  2. 7.2 uc_fedex.module \uc_fedex_init()
  3. 7 uc_fedex.module \uc_fedex_init()

Implements hook_init().

Used to load module includes and CSS. This is the wrong place to add CSS because the CSS will be included on every page, not just on the pages where it is needed. However, this is currently the Ubercart-recommended place for adding shipping quotes CSS.

File

./uc_fedex.module, line 71
FedEx Web Services Rate / Available Services Quote.

Code

function uc_fedex_init() {
  drupal_add_css(drupal_get_path('module', 'uc_fedex') . '/uc_fedex.css');

  // Can we conditionally load the address validation code based on
  // variable_get('uc_fedex_address_validation', FALSE) ?
  // Address Validation routines
  module_load_include('inc', 'uc_fedex', 'uc_fedex.aval');
}