You are here

private static property RulesFormsDataElement::$attributes in Rules Forms Support 7

An array of attributes and the form element types to which they apply.

This array is used to filter the form element options available during specific attribute setting actions.

Type: array

File

includes/rules_forms.ui.inc, line 58
Defines data type classes for forms and form elements.

Class

RulesFormsDataElement
Defines the form element data type UI.

Code

private static $attributes = array(
  'access' => 'all',
  'changed' => array(
    'textfield',
    'textarea',
    'checkbox',
    'checkboxes',
    'password',
    'radio',
    'radios',
    'select',
  ),
  'clicked' => array(
    'button',
    'submit',
  ),
  'disabled' => array(
    'textfield',
    'textarea',
    'checkbox',
    'checkboxes',
    'password',
    'radio',
    'radios',
    'select',
    'button',
    'submit',
  ),
  'default' => array(
    'textfield',
    'textarea',
    'checkbox',
    'checkboxes',
    'radio',
    'radios',
    'select',
  ),
  'description' => array(
    'textfield',
    'textarea',
    'checkbox',
    'checkboxes',
    'password',
    'radio',
    'radios',
    'select',
    'item',
  ),
  'error' => 'all',
  'options' => array(
    'select',
    'checkboxes',
  ),
  'required' => array(
    'textfield',
    'textarea',
    'checkbox',
    'checkboxes',
    'password',
    'radio',
    'radios',
    'select',
  ),
  'suffix' => 'all',
  'title' => array(
    'textfield',
    'textarea',
    'checkbox',
    'checkboxes',
    'password',
    'radio',
    'radios',
    'select',
    'item',
  ),
  'weight' => 'all',
  'value' => array(
    'textfield',
    'textarea',
    'checkbox',
    'checkboxes',
    'password',
    'radio',
    'radios',
    'select',
  ),
);