function dc_ajax_add_cart_library in Commerce Ajax Add to Cart 7.2
Implements hook_library().
File
- ./
dc_ajax_add_cart.module, line 936 - Ajax add to cart module.
Code
function dc_ajax_add_cart_library() {
$module_path = drupal_get_path('module', 'dc_ajax_add_cart');
$libraries['base'] = array(
'title' => 'Drupal Commerce Ajax Add Cart Base',
'version' => '1.0.0',
'js' => array(
$module_path . '/js/dc_ajax_add_cart_html.js' => array(
'group' => JS_DEFAULT,
),
),
'css' => array(
$module_path . '/css/dc_ajax_add_cart.css' => array(),
),
'dependencies' => array(
array(
'system',
'drupal.ajax',
),
array(
'system',
'jquery',
),
),
);
$libraries['popup'] = array(
'title' => 'Drupal Commerce Ajax Add Cart Popup',
'version' => '1.0.0',
'js' => array(
$module_path . '/js/dc_ajax_add_cart.js' => array(
'group' => JS_DEFAULT,
),
),
'css' => array(
$module_path . '/css/dc_ajax_add_cart.css' => array(),
),
'dependencies' => array(
array(
'system',
'jquery',
),
),
);
return $libraries;
}