You are here

function command_buttons_conditional_fields_default_fields in Command Buttons 7

Implements hook_conditional_fields_default_fields().

File

./command_buttons.features.conditional_fields.inc, line 10
command_buttons.features.conditional_fields.inc

Code

function command_buttons_conditional_fields_default_fields() {
  $items = array();
  $items["fieldable_panels_pane:command_buttons:0"] = array(
    'entity' => 'fieldable_panels_pane',
    'bundle' => 'command_buttons',
    'dependent' => 'field_css_class',
    'dependee' => 'field_button_style',
    'options' => array(
      'state' => 'visible',
      'condition' => 'value',
      'grouping' => 'AND',
      'effect' => 'show',
      'effect_options' => array(),
      'element_view' => array(
        1 => 1,
        2 => 2,
      ),
      'element_view_per_role' => 0,
      'element_view_roles' => array(),
      'element_edit' => array(
        1 => 1,
      ),
      'element_edit_per_role' => 0,
      'element_edit_roles' => array(),
      'selector' => '',
      'values_set' => 1,
      'value_form' => 'other',
      'value' => array(
        0 => array(
          'value' => 'other',
        ),
      ),
      'values' => array(),
    ),
  );
  $items["fieldable_panels_pane:command_buttons:1"] = array(
    'entity' => 'fieldable_panels_pane',
    'bundle' => 'command_buttons',
    'dependent' => 'field_dropdown_label',
    'dependee' => 'field_use_dropdowns',
    'options' => array(
      'state' => 'visible',
      'condition' => 'checked',
      'grouping' => 'AND',
      'effect' => 'show',
      'effect_options' => array(),
      'element_view' => array(
        1 => 1,
        2 => 2,
      ),
      'element_view_per_role' => 0,
      'element_view_roles' => array(),
      'element_edit' => array(
        1 => 1,
      ),
      'element_edit_per_role' => 0,
      'element_edit_roles' => array(),
      'selector' => '',
      'values_set' => 1,
      'value' => array(),
      'values' => array(),
      'value_form' => array(),
    ),
  );
  return $items;
}