Projet

Général

Profil

Révision 599a39cd

Ajouté par Assos Assos il y a environ 3 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/date/date_admin.inc
2 2

  
3 3
/**
4 4
 * @file
5
 * Date administration code.
5
 * Date administration functionality.
6 6
 */
7 7

  
8 8
/**
......
196 196
/**
197 197
 * Settings summary for the interval formatter.
198 198
 *
199
 * @TODO Add settings later.
199
 * @todo Add settings later.
200 200
 */
201 201
function date_interval_formatter_settings_summary($field, $instance, $view_mode) {
202 202
  $summary = array();
......
205 205
  $formatter = $display['type'];
206 206
  $field = ($settings['use_end_date'] == 1) ? 'End' : 'Start';
207 207
  $summary[] = t('Display time ago, showing @interval units. Using @field Date',
208
      array('@interval' => $settings['interval'], '@field' => $field));
208
    array('@interval' => $settings['interval'], '@field' => $field));
209 209

  
210 210
  return $summary;
211 211
}
......
378 378
      '#weight' => 6,
379 379
    );
380 380
    $form['increment'] = array(
381
      '#type' => 'select', '#title' => t('Time increments'),
381
      '#type' => 'select',
382
      '#title' => t('Time increments'),
382 383
      '#default_value' => $settings['increment'],
383 384
      '#options' => array(
384 385
        1 => t('1 minute'),
385 386
        5 => t('5 minute'),
386 387
        10 => t('10 minute'),
387 388
        15 => t('15 minute'),
388
        30 => t('30 minute')),
389
        30 => t('30 minute'),
390
      ),
389 391
      '#weight' => 7,
390 392
      '#fieldset' => 'date_format',
391 393
    );
......
440 442
    '#description' => $description,
441 443
  );
442 444
  $form['advanced']['text_parts'] = array(
443
    '#theme' => $widget['type'] == 'date_select' ? 'date_text_parts' : '',
445
    '#theme' => $widget['type'] == 'date_select' ? 'date_text_parts' : NULL,
444 446
  );
445 447
  $text_parts = (array) $settings['text_parts'];
446 448
  foreach (date_granularity_names() as $key => $value) {

Formats disponibles : Unified diff