-
Notifications
You must be signed in to change notification settings - Fork 0
/
re_jquerytouchwipe.module
51 lines (44 loc) · 1.61 KB
/
re_jquerytouchwipe.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
41
42
43
44
45
46
47
48
49
50
51
<?php
// $Id$
/**
* @file
* Provides the jQuery Touch Wipe javascript library and styles to the RE Context
* Libraries module.
*/
// Constants:
define('RE_JQUERYTOUCHWIPE_MODULE_MACHINE_NAME', 're_jquerytouchwipe');
define('RE_JQUERYTOUCHWIPE_LIBRARY_MACHINE_NAME', 're_jquerytouchwipe');
define('RE_JQUERYTOUCHWIPE_LIBRARY_TITLE', 'jQuery Touch Wipe (provided by: re_jquerytouchwipe)');
/**
* Implementation of hook_define_re_contextlibraries_library()
*/
function re_jquerytouchwipe_define_re_contextlibraries_library() {
return array(RE_JQUERYTOUCHWIPE_MODULE_MACHINE_NAME . ':' . RE_JQUERYTOUCHWIPE_LIBRARY_MACHINE_NAME => t(RE_JQUERYTOUCHWIPE_LIBRARY_TITLE));
} // re_jquerytouchwipe_define_re_contextlibraries_library()
/**
* Implements hook_library().
*
* Used to register libraries with the system.
*
* @todo Figure out why dependencies do NOT work here.
*/
function re_jquerytouchwipe_library() {
$path_to_module = drupal_get_path('module', RE_JQUERYTOUCHWIPE_MODULE_MACHINE_NAME);
$libraries[RE_JQUERYTOUCHWIPE_LIBRARY_MACHINE_NAME] = array(
'title' => RE_JQUERYTOUCHWIPE_LIBRARY_TITLE,
'website' => 'http://www.netcu.de/jquery-touchwipe-iphone-ipad-library',
'version' => '1.1.1',
'js' => array(
$path_to_module . '/js/jquery.touchwipe.min.js' => array(
'group' => JS_LIBRARY,
'weight' => 4,
),
$path_to_module . '/js/re_jquerytouchwipe.js' => array(
'group' => JS_LIBRARY,
'weight' => 6,
),
),
//'dependencies' => array('re_contextlibraries', 're_contextlibraries'),
);
return $libraries;
} // re_jquerytouchwipe_library()