You are here

function rules_forms_rules_condition_info in Rules 6

Implementation of hook_rules_condition_info().

Related topics

File

rules_forms/rules_forms.rules.inc, line 307
Rules integration to provide form support

Code

function rules_forms_rules_condition_info() {
  return array(
    'rules_forms_condition_element_value' => array(
      'label' => t('Form element has value'),
      'arguments' => array(
        'form' => array(
          'type' => 'form',
          'label' => t('Form'),
        ),
        'form_state' => array(
          'type' => 'form_state',
          'label' => t('Form state'),
        ),
        'element' => array(
          'type' => 'string',
          'label' => t('Form element ID'),
          'description' => t('ID of the form element to be targeted.') . ' ' . _rules_forms_element_description(),
        ),
        'value' => array(
          'type' => 'string',
          'label' => t('Value(s)'),
          'description' => t('Value(s) assigned to the form element. If the form element allows multiple values, enter one value per line.'),
        ),
      ),
      'module' => 'Rules Forms',
    ),
  );
}