function commerce_braintree_dropin_library in Commerce Braintree 7.3
Implements hook_library().
File
- modules/
commerce_braintree_dropin/ commerce_braintree_dropin.module, line 12 - Provides integration with Braintree Drop-in UI.
Code
function commerce_braintree_dropin_library() {
$path = drupal_get_path('module', 'commerce_braintree_dropin');
$libraries['braintree.dropin'] = array(
'title' => 'Braintree DropIn',
'website' => 'https://braintreepayments.com',
'version' => '1.7.0',
'js' => array(
'https://js.braintreegateway.com/web/dropin/1.7.0/js/dropin.min.js' => array(
'type' => 'external',
),
$path . '/js/commerce_braintree_dropin.js' => array(),
),
);
return $libraries;
}