Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/help/api-upgrading.html
113 113
/**
114 114
 * Get the value that's supposed to be rendered.
115 115
 *
116
 * @param $values
116
 * @param object $values
117 117
 *   An object containing all retrieved values.
118
 * @param $field
118
 * @param string $field
119 119
 *   Optional name of the field where the value is stored.
120 120
 */
121 121
function get_value($values, $field = NULL) {
......
128 128
/**
129 129
 * Sanitize the value for output.
130 130
 *
131
 * @param $value
131
 * @param string $value
132 132
 *   The value being rendered.
133
 * @param $type
133
 * @param string $type
134 134
 *   The type of sanitization needed. If not provided, check_plain() is used.
135 135
 */
136 136
function sanitize_value($value, $type = NULL) {
......
138 138
    case 'xss':
139 139
      $value = filter_xss($value);
140 140
      break;
141

  
141 142
    case 'url':
142 143
      $value = check_url($value);
143 144
      break;
145

  
144 146
    default:
145 147
      $value = check_plain($value);
146 148
      break;

Formats disponibles : Unified diff