Skip to content

Commit cfebe79

Browse files
committed
Merge branch 'develop' of github.com:OS2web/os2web_cp_service into develop
2 parents 772b2ad + b53ab43 commit cfebe79

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

os2web_cp_service.make

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ core = 7.x
1818

1919
; Features + related
2020
# projects[features][subdir] = "contrib"
21-
# projects[features][version] = "2.0-beta1"
21+
# projects[features][version] = "2.0-beta2"
2222

2323
# projects[strongarm][subdir] = "contrib"
2424
# projects[strongarm][version] = "2.0"
2525

2626
;Views
2727
# projects[views][subdir] = "contrib"
28-
# projects[views][version] = "3.5"
28+
# projects[views][version] = "3.7"
2929
# projects[views][patch][] = "http://drupal.org/files/combine_and_contains_word-1782678-9.patch"
3030

3131
# projects[views_php][subdir] = "contrib"
@@ -40,7 +40,7 @@ core = 7.x
4040

4141
; Basic
4242
# projects[ctools][subdir] = "contrib"
43-
# projects[ctools][version] = "1.2"
43+
# projects[ctools][version] = "1.3"
4444

4545
# projects[date][subdir] = "contrib"
4646
# projects[date][version] = "2.6"
@@ -58,4 +58,4 @@ core = 7.x
5858
# projects[token][version] = "1.4"
5959

6060
# projects[entity][subdir] = "contrib"
61-
# projects[entity][version] = "1.0-rc3"
61+
# projects[entity][version] = "1.1"

os2web_cp_service.module

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,19 @@ include_once 'os2web_cp_service.features.inc';
1111
* Implements hook_init().
1212
*/
1313
function os2web_cp_service_init() {
14-
15-
// Menu Minipanels us using qTip. Only add qTip js if module doesnt exits.
16-
if (!module_exists('menu_minipanels')) {
17-
drupal_add_js(drupal_get_path('module', 'os2web_cp_service') . '/js/jquery.qtip-1.0.0-rc3.min.js');
14+
15+
// Proper Libraries API support.
16+
$qtip_path = NULL;
17+
if (function_exists('libraries_get_path')) {
18+
$qtip_path = libraries_get_path('qtip');
19+
if (!empty($qtip_path)) {
20+
$qtip_path .= '/jquery.qtip-1.0.0-rc3.min.js';
21+
}
22+
}
23+
if (!$qtip_path) {
24+
$qtip_path = drupal_get_path('module', 'os2web_cp_service') . '/js/jquery.qtip-1.0.0-rc3.min.js';
1825
}
26+
drupal_add_js($qtip_path);
1927

2028
drupal_add_js(drupal_get_path('module', 'os2web_cp_service') . '/js/os2web_cp_service.js');
2129
drupal_add_css(drupal_get_path('module', 'os2web_cp_service') . '/css/os2web_cp_service.css');

0 commit comments

Comments
 (0)