1
|
<?php
|
2
|
/**
|
3
|
* @file
|
4
|
* Install, update and uninstall functions for the calendar module.
|
5
|
*
|
6
|
*/
|
7
|
|
8
|
function calendar_update_last_removed() {
|
9
|
return 6002;
|
10
|
}
|
11
|
|
12
|
/**
|
13
|
* Remove D6-style calendar legend block from block table.
|
14
|
*/
|
15
|
function calendar_update_7000() {
|
16
|
// Remove the former Calendar legend block, if any.
|
17
|
db_query("DELETE FROM {block} WHERE module = 'calendar' AND delta = '0'");
|
18
|
}
|
19
|
|
20
|
/**
|
21
|
* Uninstall Calendar iCal module so it can be removed.
|
22
|
*/
|
23
|
function calendar_update_7001() {
|
24
|
if (module_exists('calendar_ical')) {
|
25
|
module_disable(array('calendar_ical'));
|
26
|
}
|
27
|
}
|
28
|
|
29
|
/**
|
30
|
* Delete calendar_default_view_options(), which was used by the old default view and is no longer used.
|
31
|
*/
|
32
|
function calendar_update_7002() {
|
33
|
variable_del('calendar_default_view_options');
|
34
|
}
|