-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearch_api_algolia.module
More file actions
39 lines (34 loc) · 1.04 KB
/
search_api_algolia.module
File metadata and controls
39 lines (34 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Implements hook_search_api_service_info().
*/
function search_api_algolia_search_api_service_info() {
$services['search_api_algolia_service'] = array(
'name' => t('Algolia service'),
'description' => t('<p>Index items using Algolia cloud search.</p>' .
'<ul><li>All field types are supported</li></ul>'),
'class' => 'SearchApiAlgoliaService',
);
return $services;
}
/**
* Implements hook_libraries_info().
*
* Defining location of algolia php client library.
*/
function search_api_algolia_libraries_info() {
// Expected to be extracted into 'sites/all/libraries/algolia_api'.
$libraries['algolia_api'] = array(
'name' => 'Algolia API',
'vendor url' => 'https://github.com/algolia/algoliasearch-client-php',
'download url' => 'https://github.com/algolia/algoliasearch-client-php/archive/1.14.0.zip',
'version arguments' => array(
'file' => 'VERSION',
'pattern' => '@([0-9\.]+)@',
),
'files' => array(
'php' => array('algoliasearch.php'),
),
);
return $libraries;
}