You are here

function webform_validation_webform_validation in Webform Validation 6

Same name and namespace in other branches
  1. 7 webform_validation.module \webform_validation_webform_validation()

Implementation of hook_webform_validation().

File

./webform_validation.module, line 320

Code

function webform_validation_webform_validation($type, $op, $data) {
  if ($type == 'rule' && in_array($op, array(
    'add',
    'edit',
  ))) {
    if (module_exists('i18nstrings') && isset($data['error_message'])) {
      i18nstrings_update('webform_validation:error_message:' . $data['ruleid'] . ':message', $data['error_message']);
    }
  }
}