You are here

function audiofield_field_conditional_state_settings_alter in AudioField 7

Implements hook_field_conditional_state_settings_alter().

Add support for Field Conditional States.

File

./audiofield.module, line 377
Audio Field module for displaying audio files as usable players.

Code

function audiofield_field_conditional_state_settings_alter(&$settings) {
  $settings['audiofield_widget'] = array(
    'form_elements' => array(
      0 => array(
        0,
        'upload',
      ),
    ),
    'field_data' => array(
      0,
    ),
    'reprocess_from_root' => TRUE,
    'field_states' => array(
      'enabled',
      'disabled',
      'required',
      'optional',
      'visible',
      'invisible',
    ),
    'trigger_states' => array(
      'empty',
      'filled',
    ),
    'trigger_value_widget' => '_field_conditional_state_default_trigger_value_widget',
    'trigger_value_submit' => '_field_conditional_state_default_trigger_value_submit',
  );
}