Removed obsolete $ in source files
This commit is contained in:
parent
a39c010e06
commit
e5f2b64d98
146 changed files with 836 additions and 1081 deletions
|
@ -1,6 +1,4 @@
|
|||
<?php
|
||||
//$Id: calendar.install,v 1.13.2.12 2010/02/28 14:23:48 karens Exp $
|
||||
|
||||
/**
|
||||
* Implementation of hook_enable().
|
||||
* Reset the calendar caches.
|
||||
|
@ -30,13 +28,13 @@ function calendar_uninstall() {
|
|||
$ret = array();
|
||||
variable_del('calendar_default_view_options');
|
||||
$displays = array(
|
||||
'calendar',
|
||||
'calendar_attachment',
|
||||
'calendar_year',
|
||||
'calendar_day',
|
||||
'calendar_month',
|
||||
'calendar_week',
|
||||
'calendar_block',
|
||||
'calendar',
|
||||
'calendar_attachment',
|
||||
'calendar_year',
|
||||
'calendar_day',
|
||||
'calendar_month',
|
||||
'calendar_week',
|
||||
'calendar_block',
|
||||
'calendar_block_view',
|
||||
'calendar_ical',
|
||||
);
|
||||
|
@ -78,12 +76,12 @@ function calendar_update_6000() {
|
|||
$ret = array();
|
||||
drupal_set_message(t('Calendar module cannot be updated until after Views has been updated. Please return to <a href="@update-php">update.php</a> and run the remaining updates.', array('@update-php' => base_path() .'update.php?op=selection')), 'warning', FALSE);
|
||||
$ret['#abort'] = array('success' => FALSE, 'query' => t('calendar.module has updates, but cannot be updated until views.module is updated first.'));
|
||||
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
variable_del('calendar_empty_arg');
|
||||
|
||||
|
||||
// Can't use variable_del because we don't have a reliable
|
||||
// way to find the old view names.
|
||||
db_query("DELETE FROM {variable} WHERE name LIKE 'calendar_%'");
|
||||
|
@ -101,7 +99,7 @@ function calendar_update_6001() {
|
|||
$ret = array();
|
||||
drupal_set_message(t('Calendar module cannot be updated until after Views has been updated. Please return to <a href="@update-php">update.php</a> and run the remaining updates.', array('@update-php' => base_path() .'update.php?op=selection')), 'warning', FALSE);
|
||||
$ret['#abort'] = array('success' => FALSE, 'query' => t('calendar.module has updates, but cannot be updated until views.module is updated first.'));
|
||||
|
||||
|
||||
return $ret;
|
||||
}
|
||||
if (!module_exists('calendar_ical')) {
|
||||
|
@ -117,7 +115,7 @@ function calendar_update_6002() {
|
|||
$ret = array();
|
||||
drupal_set_message(t('Calendar module cannot be updated until after Views has been updated. Please return to <a href="@update-php">update.php</a> and run the remaining updates.', array('@update-php' => base_path() .'update.php?op=selection')), 'warning', FALSE);
|
||||
$ret['#abort'] = array('success' => FALSE, 'query' => t('calendar.module has updates, but cannot be updated until views.module is updated first.'));
|
||||
|
||||
|
||||
return $ret;
|
||||
}
|
||||
$periods = array(
|
||||
|
@ -147,11 +145,11 @@ function calendar_update_6002() {
|
|||
db_query("UPDATE {views_display} SET id='%s', display_plugin='%s', display_options='%s' WHERE id='%s'", $row['id'], $row['display_plugin'], $row['display_options'], $id);
|
||||
}
|
||||
elseif ($row['display_plugin'] == 'calendar' || $row['display_plugin'] == 'calendar_block') {
|
||||
db_query("UPDATE {views_display} SET id='%s' WHERE id='%s'", $row['id'] .'_1', $row['id']);
|
||||
db_query("UPDATE {views_display} SET id='%s' WHERE id='%s'", $row['id'] .'_1', $row['id']);
|
||||
}
|
||||
db_query("DELETE FROM {views_object_cache} WHERE name = '%s'", $row['name']);
|
||||
}
|
||||
views_invalidate_cache();
|
||||
$ret[] = array('success' => TRUE, 'query' => 'Updated calendar displays to use new handlers.');
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue