You are here

function commerce_square_libraries_info in Commerce Square Connect 7

Implements hook_libraries_info().

File

./commerce_square.module, line 22
Module file for Commerce Square.

Code

function commerce_square_libraries_info() {
  $libraries['square'] = array(
    'name' => 'Square connect SDK library',
    'vendor url' => 'https://squareup.com',
    'download url' => 'https://github.com/square/connect-php-sdk',
    'version arguments' => array(
      'file' => 'composer.json',
      'pattern' => '/"version": "(\\d+\\.\\d+\\.\\d+)"/',
    ),
    'files' => array(
      'php' => array(
        'autoload.php',
      ),
    ),
  );
  return $libraries;
}