You are here

function rules_get_settings_to_evaluate in Rules 6

Gets all settings that should be evaluated - this are manually specified settings and arguments of a data type like string, which has 'eval input' turned on.

2 calls to rules_get_settings_to_evaluate()
rules_input_evaluators_help in rules/rules.input_evaluators.inc
Returns help for the input evalutors as an array as suitable for drupal_render().
rules_prepare_input_evaluators in rules/rules.input_evaluators.inc
Prepares the available input evaluator on the element.

File

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

Code

function rules_get_settings_to_evaluate($element) {
  $info = rules_get_element_info($element);
  $eval_args = $info['eval input'];
  foreach ($info['arguments'] as $name => $arg_info) {
    if ($data_type = rules_get_data_types($arg_info['type'])) {
      if (isset($data_type['eval input']) && $data_type['eval input']) {
        $eval_args[] = $name;
      }
    }
  }
  return $eval_args;
}