You are here

function rules_data_type::check_value in Rules 6

Checks the value of your data type. E.g. the number data type uses this to make sure the value is a number.

It's only used, if your data type has set use_input_form to TRUE.

3 methods override rules_data_type::check_value()
rules_data_type_boolean::check_value in rules/modules/rules.rules.inc
Checks the value of your data type. E.g. the number data type uses this to make sure the value is a number.
rules_data_type_date::check_value in rules/modules/rules.rules.inc
Checks the value of your data type. E.g. the number data type uses this to make sure the value is a number.
rules_data_type_number::check_value in rules/modules/rules.rules.inc
Checks the value of your data type. E.g. the number data type uses this to make sure the value is a number.

File

rules/rules.data_types.inc, line 163
Defines the data type class

Class

rules_data_type
Base data type class, from which special data types can be derived.

Code

function check_value($variable_info, $value) {
  return $value;
}