Projet

Général

Profil

Révision 30d5b9c5

Ajouté par Mathieu Schiano Di Schiabica il y a environ 8 ans

Update to 7.42

Voir les différences:

drupal7/modules/field/modules/text/text.module
223 223

  
224 224
  if (strpos($display['type'], '_trimmed') !== FALSE) {
225 225
    $element['trim_length'] = array(
226
      '#title' => t('Trim length'),
226
      '#title' => t('Trimmed limit'),
227 227
      '#type' => 'textfield',
228
      '#field_suffix' => t('characters'),
228 229
      '#size' => 10,
229 230
      '#default_value' => $settings['trim_length'],
230 231
      '#element_validate' => array('element_validate_integer_positive'),
232
      '#description' => t('If the summary is not set, the trimmed %label field will be shorter than this character limit.', array('%label' => $instance['label'])),
231 233
      '#required' => TRUE,
232 234
    );
233 235
  }
......
245 247
  $summary = '';
246 248

  
247 249
  if (strpos($display['type'], '_trimmed') !== FALSE) {
248
    $summary = t('Trim length') . ': ' . check_plain($settings['trim_length']);
250
    $summary = t('Trimmed limit: @trim_length characters', array('@trim_length' => $settings['trim_length']));
249 251
  }
250 252

  
251 253
  return $summary;

Formats disponibles : Unified diff