function date_views_update_7200 in Date 7.3
Same name and namespace in other branches
- 7.2 date_views/date_views.install \date_views_update_7200()
Set default date views variables.
File
- date_views/
date_views.install, line 35 - Install, update and uninstall functions for the Date Views module.
Code
function date_views_update_7200() {
if (!variable_get('date_views_month_format_with_year', FALSE)) {
variable_set('date_views_month_format_with_year', 'F Y');
}
if (!variable_get('date_views_month_format_without_year', FALSE)) {
variable_set('date_views_month_format_without_year', 'F');
}
if (!variable_get('date_views_day_format_with_year', FALSE)) {
variable_set('date_views_day_format_with_year', 'l, F j, Y');
}
if (!variable_get('date_views_day_format_without_year', FALSE)) {
variable_set('date_views_day_format_without_year', 'l, F j');
}
if (!variable_get('date_views_week_format_with_year', FALSE)) {
variable_set('date_views_week_format_with_year', 'F j, Y');
}
if (!variable_get('date_views_week_format_without_year', FALSE)) {
variable_set('date_views_week_format_without_year', 'F j');
}
}