You are here

function botcha_rules_events_hook_variables in BOTCHA Spam Prevention 7.3

Same name and namespace in other branches
  1. 7 botcha.rules.inc \botcha_rules_events_hook_variables()
  2. 7.2 botcha.rules.inc \botcha_rules_events_hook_variables()

Describes the arguments available for the botcha_rules_event_info().

1 call to botcha_rules_events_hook_variables()
botcha_rules_event_info in ./botcha.rules.inc
Implements hook_rules_event_info().

File

./botcha.rules.inc, line 31
Rules integration for the BOTCHA module.

Code

function botcha_rules_events_hook_variables() {
  return array(
    //    'form' => array('type' => 'form', 'label' => t('Form')),
    //    'form_state' => array('type' => 'form_state', 'label' => t('Form state')),
    'form_id' => array(
      'type' => 'string',
      'label' => t('Form ID'),
    ),
    'total_recipes' => array(
      'type' => 'number',
      'label' => t('Total recipes'),
    ),
    'passed_recipes' => array(
      'type' => 'number',
      'label' => t('Total passed recipes'),
    ),
    'passed_recipes_names' => array(
      'type' => 'string',
      'label' => t('Passed recipes names'),
    ),
    'last_recipe_name' => array(
      'type' => 'string',
      'label' => t('Last recipe name'),
    ),
    'fail' => array(
      'type' => 'string',
      'label' => t('Fail condition'),
    ),
    'failed_field' => array(
      'type' => 'string',
      'label' => t('Failed field (can be obscured)'),
    ),
    'failed_error' => array(
      'type' => 'string',
      'label' => t('Failed error text (can be obscured)'),
    ),
  );
}