You are here

function uc_order_init in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 uc_order/uc_order.module \uc_order_init()

Implements hook_init().

File

uc_order/uc_order.module, line 360

Code

function uc_order_init() {
  drupal_add_css(drupal_get_path('module', 'uc_order') . '/uc_order.css');
  if (arg(0) == 'admin' && arg(1) == 'store' && arg(2) == 'orders' && is_numeric(arg(3)) && arg(4) == 'edit') {
    drupal_add_js(array(
      'ucURL' => array(
        'adminOrders' => url('admin/store/orders/'),
      ),
    ), 'setting');
    drupal_add_js(drupal_get_path('module', 'uc_order') . '/uc_order.js');
  }
}