You are here

function rules_data_type::get_info in Rules 6

Gets the information about this data type.

4 calls to rules_data_type::get_info()
rules_data_type::eval_input in rules/rules.data_types.inc
Returns whether the input evaluator should be used for this data
rules_data_type::is_identifiable in rules/rules.data_types.inc
Returns whether this data is identifiable
rules_data_type::is_savable in rules/rules.data_types.inc
Returns whether this data is savable
rules_data_type::uses_input_form in rules/rules.data_types.inc
Returns whether this data makes use of an input form for creating an instance on the fly.

File

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

Class

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

Code

function get_info() {

  // For backward compatibility set use_input_form to !identifiable if it's unset.
  return $this->_info + array(
    'savable' => FALSE,
    'identifiable' => TRUE,
    'use_input_form' => empty($this->_info['identifiable']),
    'eval input' => FALSE,
  );
}