You are here

function mailchimp_libraries_info in Mailchimp 7.2

Same name and namespace in other branches
  1. 7.5 mailchimp.module \mailchimp_libraries_info()
  2. 7.3 mailchimp.module \mailchimp_libraries_info()
  3. 7.4 mailchimp.module \mailchimp_libraries_info()

Implements hook_libraries_info().

File

./mailchimp.module, line 11
Mailchimp module.

Code

function mailchimp_libraries_info() {
  $libraries['mailchimp'] = array(
    'name' => 'MailChimp MCAPI',
    'vendor url' => 'http://apidocs.mailchimp.com/api/1.3',
    'download url' => 'http://apidocs.mailchimp.com/api/downloads/mailchimp-api-class.zip',
    'version arguments' => array(
      'file' => 'MCAPI.class.php',
      // Version 1.3
      'pattern' => '/\\$version = \\"((\\d+)\\.(\\d+))\\"/',
    ),
    'files' => array(
      'php' => array(
        'MCAPI.class.php',
      ),
    ),
  );
  return $libraries;
}