Projet

Général

Profil

Révision e4c061ad

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/plugins/contexts/string.inc
22 22
  'convert list' => array(
23 23
    'raw' => t('Raw string'),
24 24
    'html_safe' => t('HTML-safe string'),
25
    'uppercase_words_html_safe' => t('Uppercase words HTML-safe string'),
25 26
  ),
26 27
  'convert' => 'ctools_context_string_convert',
27 28
  'placeholder form' => array(
......
62 63
      return $context->data;
63 64
    case 'html_safe':
64 65
      return check_plain($context->data);
66
    case 'uppercase_words_html_safe':
67
      return ucwords(str_replace('-', ' ', check_plain($context->data)));
65 68
  }
66 69
}
67 70

  

Formats disponibles : Unified diff