You are here

function stripe_libraries_info in Stripe 7

Implements hook_libraries_info().

File

./stripe.module, line 336
stripe.module Drupal hooks used for integrating the Stripe service.

Code

function stripe_libraries_info() {
  $libraries['stripe-php'] = array(
    'name' => 'Stripe Payment API PHP Library',
    'vendor url' => 'https://stripe.com/docs/libraries',
    'download url' => 'https://stripe.com/docs/libraries#php-library',
    'version arguments' => array(
      'file' => 'VERSION',
      'pattern' => '/((\\d+)\\.(\\d+)\\.(\\d+))/',
      'lines' => 1,
    ),
    'files' => array(
      'php' => array(
        'init.php',
      ),
    ),
    'callbacks' => array(
      'post-load' => array(
        'stripe_libraries_postload_callback',
      ),
    ),
  );
  return $libraries;
}