function uc_add_js in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_store/uc_store.module \uc_add_js()
Wrapper for drupal_add_js() to cache .js files based on their timestamp.
Deprecated! Use drupal_add_js() instead.
File
- uc_store/
uc_store.module, line 2133 - Contains global Ubercart functions and store administration functionality.
Code
function uc_add_js($data = NULL, $type = 'module', $scope = 'header', $defer = FALSE, $cache = TRUE) {
watchdog('uc_store', 'uc_add_js() has been deprecated. Use drupal_add_js() in your code.', array(), WATCHDOG_ERROR);
drupal_add_js($data, $type, $scope, $defer, $cache);
}