You are here

function botcha_rules_events_hook_arguments in BOTCHA Spam Prevention 6

Same name and namespace in other branches
  1. 6.2 botcha.rules.inc \botcha_rules_events_hook_arguments()
  2. 6.3 botcha.rules.inc \botcha_rules_events_hook_arguments()

Describes the arguments available for the botcha_hook().

1 call to botcha_rules_events_hook_arguments()
botcha_rules_event_info in ./botcha.rules.inc
Implementation of hook_rules_event_info().

File

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

Code

function botcha_rules_events_hook_arguments() {
  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)'),
    ),
  ) + rules_events_global_user_argument();
}