You are here

function webform_conditional_load in Webform 7.4

Load a conditional setting from the database.

File

includes/webform.conditionals.inc, line 1343
Form elements and menu callbacks to provide conditional handling in Webform.

Code

function webform_conditional_load($rgid, $nid) {
  $node = node_load($nid);
  $conditional = isset($node->webform['conditionals'][$rgid]) ? $node->webform['conditionals'][$rgid] : FALSE;
  return $conditional;
}