function RulesDataInputEvaluator::getEvaluatorOptions
Generates the evaluator $options.
2 calls to RulesDataInputEvaluator::getEvaluatorOptions()
- RulesDataInputEvaluator::process in includes/
rules.processor.inc - Overridden to generate evaluator $options and invoke evaluate().
- RulesI18nStringEvaluator::process in rules_i18n/
rules_i18n.rules.inc - Prepare the i18n-context string.
File
-
includes/
rules.processor.inc, line 270
Class
- RulesDataInputEvaluator
- A base processor for use by input evaluators.
Code
protected function getEvaluatorOptions($info, $state, $element) {
$cache = rules_get_cache();
$languages = language_list();
$info += array(
'cleaning callback' => isset($cache['data info'][$info['type']]['cleaning callback']) ? $cache['data info'][$info['type']]['cleaning callback'] : FALSE,
'sanitize' => FALSE,
);
$options = array_filter(array(
'language' => $info['#langcode'] != LANGUAGE_NONE && isset($languages[$info['#langcode']]) ? $languages[$info['#langcode']] : NULL,
'callback' => $info['cleaning callback'],
'sanitize' => $info['sanitize'],
));
return $options;
}