You are here

function rules_rules_condition_info in Rules 6

Same name and namespace in other branches
  1. 7.2 rules.rules.inc \rules_rules_condition_info()

Implementation of hook_rules_condition_info().

Related topics

File

rules/modules/rules.rules.inc, line 139
rules integration for the rules module

Code

function rules_rules_condition_info() {
  return array(
    'rules_condition_text_compare' => array(
      'label' => t('Textual comparison'),
      'arguments' => array(
        'text1' => array(
          'label' => t('Text 1'),
          'type' => 'string',
        ),
        'text2' => array(
          'label' => t('Text 2'),
          'type' => 'string',
        ),
      ),
      'help' => t('TRUE is returned, if both texts are equal.'),
      'module' => 'Rules',
    ),
    'rules_condition_number_compare' => array(
      'label' => t('Numeric comparison'),
      'arguments' => array(
        'number1' => array(
          'label' => t('Number 1'),
          'type' => 'number',
        ),
        'number2' => array(
          'label' => t('Number 2'),
          'type' => 'number',
        ),
      ),
      'help' => t('Select greater than, less than or equal to.'),
      'module' => 'Rules',
    ),
    'rules_condition_check_boolean' => array(
      'label' => t('Check a truth value'),
      'arguments' => array(
        'boolean' => array(
          'type' => 'boolean',
          'label' => t('Truth value'),
        ),
      ),
      'module' => 'Rules',
    ),
  );
}