You are here

function search_api_algolia_libraries_info in Search API Algolia 7

Implements hook_libraries_info().

For defining external libraries.

File

./search_api_algolia.module, line 26
Main module file for search_api_algolia.

Code

function search_api_algolia_libraries_info() {

  // A very simple library. No changing APIs (hence, no versions), no variants.
  // Expected to be extracted into 'sites/all/libraries/simple'.
  $libraries['algolia'] = array(
    'name' => 'Algolia PHP library',
    'vendor url' => 'https://www.algolia.com/',
    'download url' => 'https://github.com/algolia/algoliasearch-client-php',
    'version callback' => 'search_api_algolia_libraries_version_callback',
    'files' => array(
      'php' => array(
        'algoliasearch.php',
      ),
    ),
  );
  return $libraries;
}