-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharbiterjs.module
42 lines (39 loc) · 1.05 KB
/
arbiterjs.module
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
39
40
<?php
/**
* hook_libraries_info() implementation for the arbiterjs library module
*
* ArbiterJS is a JavaScript implementation of the publish/subscribe
* design pattern for client-side JavaScript.
*
* Please download the ArbiterJS JavaScript source file to the directory
*
* $(DRUPAL_HOME)/libraries/arbiterjs/Arbiter.js
*
* and manually create a VERSION file corresponding to the version
* in use, for example:
*
* echo 1.0 > $(DRUPAL_HOME)/libraries/arbiterjs/VERSION
*
* @return
* An associative array whose keys are internal names of libraries
* and whose values are describing each library.
*/
function arbiterjs_libraries_info() {
$libraries['arbiterjs'] = array(
'name' => 'ArbiterJS',
'vendor url' => 'http://arbiterjs.com',
'download url' => 'http://arbiterjs.com/',
'version arguments' => array(
'file' => 'VERSION',
'pattern' => '@([0-9\.]+)@',
'lines' => 1,
'cols' => 8,
),
'files' => array(
'js' => array(
'Arbiter.js',
),
),
);
return $libraries;
}