function rules_rules_data_type_info in Rules 6
Implementation of hook_rules_data_type_info().
Related topics
File
- rules/
modules/ rules.rules.inc, line 14 - rules integration for the rules module
Code
function rules_rules_data_type_info() {
return array(
'string' => array(
'label' => t('string'),
'class' => 'rules_data_type_string',
'identifiable' => FALSE,
'eval input' => TRUE,
'token type' => 'string',
),
'number' => array(
'label' => t('number'),
'class' => 'rules_data_type_number',
'identifiable' => FALSE,
'eval input' => TRUE,
'token type' => 'number',
),
'date' => array(
'label' => t('date'),
'class' => 'rules_data_type_date',
'identifiable' => FALSE,
'eval input' => TRUE,
'token type' => FALSE,
),
'boolean' => array(
'label' => t('truth value'),
'class' => 'rules_data_type_boolean',
'identifiable' => FALSE,
'eval input' => TRUE,
'token type' => FALSE,
),
'value' => array(
'label' => t('a fixed value'),
'class' => 'rules_data_type',
'identifiable' => FALSE,
'hidden' => TRUE,
),
);
}