You are here

function rules_input_evaluator_callback_apply in Rules 6

Apply the input evaluator.

The implementation should be placed into the file MODULENAME.rules.inc.

Parameters

$string: The string to evaluate.

$data: The data as returned from rules_input_evaluator_callback_prepare().

$state: The current evaluation state.

$return_output: The evaluated string.

See also

hook_rules_evaluator(), rules_input_evaluator_php_apply().

Related topics

File

rules/rules.api.php, line 516
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.

Code

function rules_input_evaluator_callback_apply($string, $data = NULL, &$state, $return_output = TRUE) {

  // Evaluate string.
  return $string;
}