-
Notifications
You must be signed in to change notification settings - Fork 1
/
date_ical.install
49 lines (43 loc) · 1.06 KB
/
date_ical.install
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
<?php
/**
* @file
* Install, update and uninstall functions for the date_ical module.
*/
/**
* Implements hook_requirements().
*/
function date_ical_requirements($phase) {
$requirements = array();
// Ensure translations don't break at install time.
$t = get_t();
if ($phase == 'runtime') {
if (class_exists('iCalUtilityFunctions')) {
$requirements['date_ical'] = array(
'title' => $t('Date iCal'),
'value' => $t('2.20.7'),
'severity' => REQUIREMENT_OK,
);
}
else {
$requirements['date_ical'] = array(
'title' => $t('Date iCal'),
'value' => $t('There was a problem loading the iCalcreator library.'),
'description' => $t('The Date iCal module may be corrupted.'),
'severity' => REQUIREMENT_ERROR,
);
}
}
return $requirements;
}
/**
* Implements of hook_enable().
*/
function date_ical_enable() {
cache_clear_all('plugins:feeds:plugins', 'cache');
}
/**
* Implements hook_update_last_removed().
*/
function date_ical_update_last_removed() {
return 7300;
}