Projet

Général

Profil

Révision 81b16cc2

Ajouté par Assos Assos il y a plus de 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/webform_validation/webform_validation.rules.inc
2 2

  
3 3
/**
4 4
 * @file
5
 * provides API and management functions for the webform validation rules
5
 * Provides API and management functions for the webform validation rules.
6 6
 */
7 7

  
8 8
/**
9
 * Get a rule entry
9
 * Get a rule entry.
10 10
 */
11 11
function webform_validation_get_rule($ruleid) {
12 12
  $result = db_query("SELECT ruleid, rulename, nid, validator, data, error_message, negate, weight FROM {webform_validation_rule} WHERE ruleid = :ruleid", array(':ruleid' => $ruleid), array('fetch' => PDO::FETCH_ASSOC));
......
17 17
}
18 18

  
19 19
/**
20
 * Get an array of rules assigned to a webform node
20
 * Get an array of rules assigned to a webform node.
21 21
 */
22 22
function webform_validation_get_node_rules($nid) {
23 23
  $rules = array();
......
31 31
}
32 32

  
33 33
/**
34
 * Get an array of components linked to a rule
34
 * Get an array of components linked to a rule.
35 35
 */
36 36
function webform_validation_get_rule_components($ruleid, $nid) {
37 37
  $cids = array();
......
54 54
}
55 55

  
56 56
/**
57
 * Get info on all components that are available on a webform
57
 * Get info on all components that are available on a webform.
58 58
 */
59 59
function webform_validation_get_all_components($nid) {
60 60
  $components = array();

Formats disponibles : Unified diff