You are here

function webform_validation_get_webform_rules in Webform Validation 7

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

Get the list of rules associated with the webform.

Deprecated

in webform_validation:7.x-1.18 and is removed from webform_validation:7.x-2.0. Use webform_validation_get_node_rules().

See also

https://www.drupal.org/project/webform_validation/issues/3104316

File

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

Code

function webform_validation_get_webform_rules($node) {
  if (in_array($node->type, webform_variable_get('webform_node_types'))) {
    return webform_validation_get_node_rules($node->nid);
  }
}