You are here

function webform_validation_get_webform_rules in Webform Validation 6

Same name and namespace in other branches
  1. 7 webform_validation.admin.inc \webform_validation_get_webform_rules()

Get the list of rules associated with the webform

1 call to webform_validation_get_webform_rules()
webform_validation_manage in ./webform_validation.admin.inc
Menu callback function to show an overview of the existing validation rules, and the option to add a rule

File

./webform_validation.admin.inc, line 22
Manages validation rules administration UI

Code

function webform_validation_get_webform_rules($node) {
  $vars = webform_validation_get_vars();
  if (in_array($node->type, $vars['webform_contenttypes'])) {
    $webform_nid = $node->nid;
    $rules = webform_validation_get_node_rules($node->nid);
  }
  return $rules;
}