function webform_update_7424 in Webform 7.4
Convert conditional actions of "hide" to "isn't shown".
File
- ./
webform.install, line 2227 - Webform module install/schema hooks.
Code
function webform_update_7424() {
$count = db_update('webform_conditional_actions')
->fields(array(
'action' => 'show',
'invert' => 1,
))
->condition('action', 'hide')
->execute();
return format_plural($count, '1 "hide" conditional converted to "isn\'t" shown.', '@count conditionals converted to "isn\'t" shown.');
}