Projet

Général

Profil

Révision b720ea3e

Ajouté par Assos Assos il y a plus de 8 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/date/date_views/date_views.install
28 28
  variable_del('date_views_week_format_with_year');
29 29
  variable_del('date_views_week_format_without_year');
30 30
}
31

  
32
/**
33
 * Set default date views variables.
34
 */
35
function date_views_update_7200() {
36
  if (!variable_get('date_views_month_format_with_year', FALSE)) {
37
    variable_set('date_views_month_format_with_year', 'F Y');
38
  }
39
  if (!variable_get('date_views_month_format_without_year', FALSE)) {
40
    variable_set('date_views_month_format_without_year', 'F');
41
  }
42
  if (!variable_get('date_views_day_format_with_year', FALSE)) {
43
    variable_set('date_views_day_format_with_year', 'l, F j, Y');
44
  }
45
  if (!variable_get('date_views_day_format_without_year', FALSE)) {
46
    variable_set('date_views_day_format_without_year', 'l, F j');
47
  }
48
  if (!variable_get('date_views_week_format_with_year', FALSE)) {
49
    variable_set('date_views_week_format_with_year', 'F j, Y');
50
  }
51
  if (!variable_get('date_views_week_format_without_year', FALSE)) {
52
    variable_set('date_views_week_format_without_year', 'F j');
53
  }
54
}

Formats disponibles : Unified diff