You are here

function webform_validation_save_rule_components in Webform Validation 6

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

Save components attached to a specific rule

1 call to webform_validation_save_rule_components()
webform_validation_rule_save in ./webform_validation.module
Save a validation rule. Data comes from the admin form or nodeapi function in case of node clone

File

./webform_validation.module, line 397

Code

function webform_validation_save_rule_components($ruleid, $components) {
  foreach ($components as $cid => $component) {
    db_query("INSERT INTO {webform_validation_rule_components} (ruleid, cid) VALUES (%d, %d)", $ruleid, $cid);
  }
}