Projet

Général

Profil

Révision c304a780

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/plugins/contexts/query_string.inc
1 1
<?php
2 2

  
3 3
/**
4
 * @file query_string.inc
4
 * @file
5 5
 * Context plugin that can extract arbitrary values from the query string.
6 6
 */
7 7

  
......
52 52
    '#title' => t('Query string key'),
53 53
    '#description' => t('Enter the key of the value that must be returned from the query string.'),
54 54
    '#type' => 'textfield',
55
    '#required' => TRUE
55
    '#required' => TRUE,
56 56
  );
57 57
  if (isset($form_state['conf']['key'])) {
58 58
    $form['key']['#default_value'] = $form_state['conf']['key'];
......
83 83
  switch ($type) {
84 84
    case 'raw':
85 85
      return $context->data;
86

  
86 87
    case 'html_safe':
87 88
      return check_plain($context->data);
88 89
  }

Formats disponibles : Unified diff