function command_buttons_field_default_field_instances in Command Buttons 7
Implements hook_field_default_field_instances().
File
Code
function command_buttons_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'command_button-button-field_command_link'
$field_instances['command_button-button-field_command_link'] = array(
'bundle' => 'button',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'link',
'settings' => array(),
'type' => 'link_default',
'weight' => 2,
),
),
'entity_type' => 'command_button',
'field_name' => 'field_command_link',
'label' => 'Command Link',
'required' => 0,
'settings' => array(
'absolute_url' => 1,
'attributes' => array(
'class' => 'btn btn-primary',
'configurable_title' => 0,
'rel' => '',
'target' => 'default',
'title' => '',
),
'display' => array(
'url_cutoff' => 80,
),
'enable_tokens' => 1,
'linkit' => array(
'enable' => 0,
'insert_plugin' => '',
),
'rel_remove' => 'default',
'title' => 'required',
'title_maxlength' => 128,
'title_value' => '',
'url' => 0,
'user_register_form' => FALSE,
'validate_url' => 0,
),
'widget' => array(
'active' => 0,
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => 3,
),
);
// Exported field_instance: 'command_button-button-field_link_icon'
$field_instances['command_button-button-field_link_icon'] = array(
'bundle' => 'button',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 3,
),
),
'entity_type' => 'command_button',
'field_name' => 'field_link_icon',
'label' => 'Link Icon',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'apply_chosen' => 0,
),
'type' => 'options_buttons',
'weight' => 4,
),
);
// Exported field_instance: 'command_button-node_add-field_command_link'
$field_instances['command_button-node_add-field_command_link'] = array(
'bundle' => 'node_add',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'link',
'settings' => array(),
'type' => 'link_default',
'weight' => 0,
),
),
'entity_type' => 'command_button',
'field_name' => 'field_command_link',
'label' => 'Command Link',
'required' => 0,
'settings' => array(
'absolute_url' => 1,
'attributes' => array(
'class' => 'btn btn-primary',
'configurable_title' => 0,
'rel' => '',
'target' => 'default',
'title' => '',
),
'display' => array(
'url_cutoff' => 80,
),
'enable_tokens' => 1,
'linkit' => array(
'enable' => 0,
'insert_plugin' => '',
),
'rel_remove' => 'default',
'title' => 'optional',
'title_maxlength' => 128,
'title_value' => '',
'url' => 0,
'user_register_form' => FALSE,
'validate_url' => 1,
),
'widget' => array(
'active' => 0,
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => -3,
),
);
// Exported field_instance: 'fieldable_panels_pane-command_buttons-field_block_buttons'
$field_instances['fieldable_panels_pane-command_buttons-field_block_buttons'] = array(
'bundle' => 'command_buttons',
'default_value' => array(
0 => array(
'value' => 0,
),
),
'deleted' => 0,
'description' => 'If checked, buttons will span the full width of the parent element.',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 4,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_block_buttons',
'label' => 'Full Width Buttons',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'display_label' => 1,
),
'type' => 'options_onoff',
'weight' => 5,
),
);
// Exported field_instance: 'fieldable_panels_pane-command_buttons-field_button_size'
$field_instances['fieldable_panels_pane-command_buttons-field_button_size'] = array(
'bundle' => 'command_buttons',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 3,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_button_size',
'label' => 'Button Size',
'required' => 1,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'apply_chosen' => 0,
),
'type' => 'options_select',
'weight' => 4,
),
);
// Exported field_instance: 'fieldable_panels_pane-command_buttons-field_button_style'
$field_instances['fieldable_panels_pane-command_buttons-field_button_style'] = array(
'bundle' => 'command_buttons',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 2,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_button_style',
'label' => 'Button Style',
'required' => 1,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'apply_chosen' => 0,
),
'type' => 'options_select',
'weight' => 2,
),
);
// Exported field_instance: 'fieldable_panels_pane-command_buttons-field_commands'
$field_instances['fieldable_panels_pane-command_buttons-field_commands'] = array(
'bundle' => 'command_buttons',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'entityreference',
'settings' => array(
'links' => 0,
'use_content_language' => TRUE,
'view_mode' => 'full',
),
'type' => 'entityreference_entity_view',
'weight' => 0,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_commands',
'label' => 'Commands',
'options_limit' => FALSE,
'options_limit_empty_behaviour' => 0,
'options_limit_fields' => array(),
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference',
'settings' => array(
'apply_chosen' => 0,
'match_operator' => 'CONTAINS',
'path' => '',
'size' => 60,
),
'type' => 'entityreference_autocomplete',
'weight' => 1,
),
);
// Exported field_instance: 'fieldable_panels_pane-command_buttons-field_css_class'
$field_instances['fieldable_panels_pane-command_buttons-field_css_class'] = array(
'bundle' => 'command_buttons',
'default_value' => NULL,
'deleted' => 0,
'description' => 'CSS Class to apply to command links',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 1,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_css_class',
'label' => 'CSS Class',
'required' => 0,
'settings' => array(
'linkit' => array(
'enable' => 0,
'insert_plugin' => '',
),
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 3,
),
);
// Exported field_instance: 'fieldable_panels_pane-command_buttons-field_dropdown_label'
$field_instances['fieldable_panels_pane-command_buttons-field_dropdown_label'] = array(
'bundle' => 'command_buttons',
'default_value' => NULL,
'deleted' => 0,
'description' => 'The text to use on the dropdown label.',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 6,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_dropdown_label',
'label' => 'Dropdown Label',
'required' => 0,
'settings' => array(
'linkit' => array(
'enable' => 0,
'insert_plugin' => '',
),
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 7,
),
);
// Exported field_instance: 'fieldable_panels_pane-command_buttons-field_use_dropdowns'
$field_instances['fieldable_panels_pane-command_buttons-field_use_dropdowns'] = array(
'bundle' => 'command_buttons',
'default_value' => array(
0 => array(
'value' => 0,
),
),
'deleted' => 0,
'description' => 'If checked, buttons will be rendered as a dropdown menu.',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 5,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_use_dropdowns',
'label' => 'Use Dropdowns',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'display_label' => 1,
),
'type' => 'options_onoff',
'weight' => 6,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Button Size');
t('Button Style');
t('CSS Class');
t('CSS Class to apply to command links');
t('Command Link');
t('Commands');
t('Dropdown Label');
t('Full Width Buttons');
t('If checked, buttons will be rendered as a dropdown menu.');
t('If checked, buttons will span the full width of the parent element.');
t('Link Icon');
t('The text to use on the dropdown label.');
t('Use Dropdowns');
return $field_instances;
}