You are here

function rules_apply_input_evaluators in Rules 6

Applies the available input evaluator on the element.

1 call to rules_apply_input_evaluators()
rules_get_execution_arguments in rules/rules.variables.inc
Returns the execution arguments needed by the given element It applies the input evaluators and the #argument map and gets all needed arguments.

File

rules/rules.input_evaluators.inc, line 47
Rules input evaluation system.

Code

function rules_apply_input_evaluators(&$element, &$state) {
  $settings =& $element['#settings'];
  if (isset($settings['#eval input'])) {
    foreach ($settings['#eval input'] as $base => $info) {
      foreach ($info as $name => $data) {
        $setting =& _rules_get_setting($settings, $name);
        $setting = call_user_func_array($base . '_apply', array(
          $setting,
          $data,
          &$state,
        ));
        if ($setting === FALSE) {

          // application failed
          return FALSE;
        }
      }
    }
  }
}