You are here

function simple_fb_connect_libraries_info in Simple FB Connect 7

Same name and namespace in other branches
  1. 8 simple_fb_connect.module \simple_fb_connect_libraries_info()
  2. 7.2 simple_fb_connect.module \simple_fb_connect_libraries_info()

Implements hook_libraries_info().

File

./simple_fb_connect.module, line 185
Simple Facebook Login Module for Drupal Sites.

Code

function simple_fb_connect_libraries_info() {

  // Returns an associative array, with information about external library
  $libraries['facebook-php-sdk'] = array(
    'name' => 'Facebook PHP SDK',
    'vendor url' => 'https://github.com/facebook/facebook-php-sdk',
    'download url' => 'https://github.com/facebook/facebook-php-sdk/archive/v3.2.3.tar.gz',
    'version arguments' => array(
      'file' => 'readme.md',
      // Best practice: Document the actual version strings for later reference.
      // Facebook PHP SDK (v.3.2.2)
      'pattern' => '/Facebook PHP SDK \\(v\\.(3\\.\\d\\.\\d)\\)/',
      'lines' => 25,
    ),
    // supported library version, including relevant files
    'versions' => array(
      '3.2.2' => array(
        'files' => array(
          'php' => array(
            'src/base_facebook.php',
            'src/facebook.php',
          ),
        ),
      ),
    ),
  );
  return $libraries;
}