function _invoice_add_css_js in Invoice 7
Same name and namespace in other branches
- 6 invoice_helpers.inc \_invoice_add_css_js()
Helper function to add JS or CSS to Drupal
1 call to _invoice_add_css_js()
- invoice_init in ./
invoice.module - Implements hook_init()
File
- ./
invoice_helpers.inc, line 479 - Invoice module
Code
function _invoice_add_css_js() {
$invoice_js_settings = array(
'host' => $_SERVER['HTTP_HOST'],
'clean_urls' => (bool) variable_get('clean_url', FALSE),
);
drupal_add_js(array(
'invoice' => $invoice_js_settings,
), 'setting');
drupal_add_js(drupal_get_path('module', 'invoice') . '/javascript/invoice.js');
drupal_add_css(drupal_get_path('module', 'invoice') . '/invoice.css');
}