function message_example_field_default_field_instances in Message 7
Implements hook_field_default_field_instances().
File
- message_example/
message_example.features.field_instance.inc, line 10 - message_example.features.field_instance.inc
Code
function message_example_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'message-example_create_comment-field_comment_ref'
$field_instances['message-example_create_comment-field_comment_ref'] = array(
'bundle' => 'example_create_comment',
'default_value' => NULL,
'default_value_function' => '',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 4,
),
'full' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 2,
),
),
'entity_type' => 'message',
'field_name' => 'field_comment_ref',
'label' => 'Comment reference',
'required' => 1,
'settings' => array(
'behaviors' => array(
'prepopulate' => array(
'action' => 'hide',
'fallback' => 'none',
'skip_perm' => 'access administration menu',
'status' => 0,
),
),
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference',
'settings' => array(
'match_operator' => 'CONTAINS',
'path' => '',
'size' => 60,
),
'type' => 'entityreference_autocomplete',
'weight' => 1,
),
);
// Exported field_instance: 'message-example_create_comment-field_node_ref'
$field_instances['message-example_create_comment-field_node_ref'] = array(
'bundle' => 'example_create_comment',
'default_value' => NULL,
'default_value_function' => '',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 3,
),
'full' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 3,
),
),
'entity_type' => 'message',
'field_name' => 'field_node_ref',
'label' => 'Node reference',
'required' => 1,
'settings' => array(
'behaviors' => array(
'prepopulate' => array(
'action' => 'hide',
'fallback' => 'none',
'skip_perm' => 'access administration menu',
'status' => 0,
),
),
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference',
'settings' => array(
'match_operator' => 'CONTAINS',
'path' => '',
'size' => 60,
),
'type' => 'entityreference_autocomplete',
'weight' => 0,
),
);
// Exported field_instance: 'message-example_create_comment-field_published'
$field_instances['message-example_create_comment-field_published'] = array(
'bundle' => 'example_create_comment',
'default_value' => array(
0 => array(
'value' => 0,
),
),
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 5,
),
'full' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 4,
),
),
'entity_type' => 'message',
'field_name' => 'field_published',
'label' => 'Published',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'display_label' => 0,
),
'type' => 'options_onoff',
'weight' => 2,
),
);
// Exported field_instance: 'message-example_create_node-field_node_ref'
$field_instances['message-example_create_node-field_node_ref'] = array(
'bundle' => 'example_create_node',
'default_value' => NULL,
'default_value_function' => '',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 5,
),
'full' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 5,
),
),
'entity_type' => 'message',
'field_name' => 'field_node_ref',
'label' => 'Node reference',
'required' => 1,
'settings' => array(
'behaviors' => array(
'prepopulate' => array(
'action' => 'hide',
'fallback' => 'none',
'skip_perm' => 'access administration menu',
'status' => 0,
),
),
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference',
'settings' => array(
'match_operator' => 'CONTAINS',
'path' => '',
'size' => 60,
),
'type' => 'entityreference_autocomplete',
'weight' => 2,
),
);
// Exported field_instance: 'message-example_create_node-field_published'
$field_instances['message-example_create_node-field_published'] = array(
'bundle' => 'example_create_node',
'default_value' => array(
0 => array(
'value' => 0,
),
),
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 4,
),
'full' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 4,
),
),
'entity_type' => 'message',
'field_name' => 'field_published',
'label' => 'Published',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'display_label' => 0,
),
'type' => 'options_onoff',
'weight' => 3,
),
);
// Exported field_instance: 'message-example_user_register-field_published'
$field_instances['message-example_user_register-field_published'] = array(
'bundle' => 'example_user_register',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 1,
),
'full' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 1,
),
),
'entity_type' => 'message',
'field_name' => 'field_published',
'label' => 'Published',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => 2,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Comment reference');
t('Node reference');
t('Published');
return $field_instances;
}