You are here

function commerce_braintree_libraries_info in Commerce Braintree 7.2

Same name and namespace in other branches
  1. 7.3 commerce_braintree.module \commerce_braintree_libraries_info()

Implements hook_libraries_info().

File

./commerce_braintree.module, line 70
Integrates Braintree Transparent Redirect with Drupal Commerce.

Code

function commerce_braintree_libraries_info() {
  $libraries['braintree_php'] = array(
    'name' => 'BrainTree PHP',
    'vendor url' => 'https://www.braintreepayments.com/docs/php',
    'download url' => 'https://github.com/braintree/braintree_php',
    'version arguments' => array(
      'file' => 'CHANGELOG.md',
      'pattern' => '/^##\\s+(.+)$/',
      'lines' => 1,
    ),
    'files' => array(
      'php' => array(
        'lib/Braintree.php',
      ),
    ),
  );
  return $libraries;
}