function field_validation_update_8001 in Field Validation 8
Renames validation rules config prefix from "fv" to "rule_set".
File
- ./
field_validation.install, line 18 - Install, update and uninstall functions for the Field Validation module.
Code
function field_validation_update_8001() {
$config_factory = \Drupal::configFactory();
foreach ($config_factory
->listAll('field_validation.fv.') as $old_name) {
$new_name = 'field_validation.rule_set.' . substr($old_name, 20);
$config_factory
->rename($old_name, $new_name);
}
}