You are here

function rules_forms_events_arguments in Rules 6

Returns some arguments suitable for hook form alter.

Related topics

1 call to rules_forms_events_arguments()
rules_forms_rules_event_info in rules_forms/rules_forms.rules.inc
Implementation of hook_rules_event_info().

File

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

Code

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