Project

General

Profile

Revision 76bdcd04

Added by Assos Assos almost 6 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/webform_validation/webform_validation.install
126 126
 * Helper function: update numeric validator range to new syntax.
127 127
 */
128 128
function _webform_validation_update_range_syntax($range) {
129
  // No longer use "0" as indicator for no validation. This should be an empty string.
129
  // No longer use "0" as indicator for no validation. This should be an empty
130
  // string.
130 131
  if ($range === "0") {
131 132
    return "";
132 133
  }
......
144 145
}
145 146

  
146 147
/**
148
 * Implements hook_update_N().
149
 */
150

  
151
/**
152
 * Adjust DB schema.
153
 *
147 154
 * Add column to track negated rules.
148 155
 * Remove explicit length limit on data field.
149 156
 * Remove regex escaping of blacklist data.
......
164 171
    'not null' => FALSE,
165 172
  ));
166 173

  
167
  $replace = array('.', '\\', '+', '*', '?', '[', '^', ']', '$', '(', ')', '{', '}', '=', '!', '<', '>', '|', ':', '-', '/');
174
  $replace = array('.', '\\', '+', '*', '?', '[', '^', ']', '$', '(', ')', '{',
175
    '}', '=', '!', '<', '>', '|', ':', '-', '/',
176
  );
168 177
  $search = array();
169 178
  foreach ($replace as $value) {
170 179
    $search[] = '\\' . $value;

Also available in: Unified diff