You are here

function rules_forms_event_variables in Rules Forms Support 7

Returns some arguments suitable for hook form alter.

See also

rules_forms_rules_event_info()

1 call to rules_forms_event_variables()
rules_forms_rules_event_info in ./rules_forms.rules.inc
Implements hook_rules_event_info().

File

./rules_forms.rules.inc, line 68
Rules events, conditions, and actions hooks for Rules Forms module.

Code

function rules_forms_event_variables() {
  return array(
    'form' => array(
      'type' => 'form',
      'label' => t('Form'),
    ),
    'form_state' => array(
      'type' => 'form_state',
      'label' => t('Form state'),
    ),
    'form_id' => array(
      'type' => 'text',
      'label' => t('Form ID'),
    ),
    'entity' => array(
      'type' => 'entity',
      'label' => t('Entity if entity form.'),
    ),
    'user' => array(
      'type' => 'user',
      'label' => t('Logged in user'),
    ),
  );
}