View source
<?php
function oa_discussion_field_default_field_instances() {
$field_instances = array();
$field_instances['message-oa_reply-field_oa_message_section'] = array(
'bundle' => 'oa_reply',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'entityreference',
'settings' => array(
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 1,
),
'message_notify_daily_digest' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'message_notify_email_body' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'message_notify_email_subject' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'message_notify_weekly_digest' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'oa_river_accordian' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'oa_river_body' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'oa_river_header' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'message',
'field_name' => 'field_oa_message_section',
'label' => 'Section',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference',
'settings' => array(
'match_operator' => 'CONTAINS',
'path' => '',
'references_dialog_add' => 0,
'references_dialog_edit' => 0,
'references_dialog_search' => 0,
'references_dialog_search_view' => '',
'size' => 60,
),
'type' => 'entityreference_autocomplete',
'weight' => 4,
),
);
$field_instances['message-oa_reply-field_oa_message_space'] = array(
'bundle' => 'oa_reply',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'entityreference',
'settings' => array(
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 0,
),
'message_notify_daily_digest' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'message_notify_email_body' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'message_notify_email_subject' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'message_notify_weekly_digest' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'oa_river_accordian' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'oa_river_body' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'oa_river_header' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'message',
'field_name' => 'field_oa_message_space',
'label' => 'Space',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference',
'settings' => array(
'match_operator' => 'CONTAINS',
'path' => '',
'references_dialog_add' => 0,
'references_dialog_edit' => 0,
'references_dialog_search' => 0,
'references_dialog_search_view' => '',
'size' => 60,
),
'type' => 'entityreference_autocomplete',
'weight' => 2,
),
);
$field_instances['message-oa_reply-field_oa_message_text'] = array(
'bundle' => 'oa_reply',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 2,
),
'message_notify_daily_digest' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'message_notify_email_body' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'message_notify_email_subject' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'message_notify_weekly_digest' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'oa_river_accordian' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'oa_river_body' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'oa_river_header' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'message',
'field_name' => 'field_oa_message_text',
'label' => 'Custom Text',
'required' => 0,
'settings' => array(
'linkit' => array(
'enable' => 0,
'insert_plugin' => '',
),
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 6,
),
);
$field_instances['message-oa_reply-field_oa_node_ref'] = array(
'bundle' => 'oa_reply',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'entityreference',
'settings' => array(
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 3,
),
'message_notify_daily_digest' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'message_notify_email_body' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'message_notify_email_subject' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'message_notify_weekly_digest' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'oa_river_accordian' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'oa_river_body' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'oa_river_header' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'message',
'field_name' => 'field_oa_node_ref',
'label' => 'Node',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference',
'settings' => array(
'match_operator' => 'CONTAINS',
'path' => '',
'references_dialog_add' => 0,
'references_dialog_edit' => 0,
'references_dialog_search' => 0,
'references_dialog_search_view' => '',
'size' => 60,
),
'type' => 'entityreference_autocomplete',
'weight' => 8,
),
);
$field_instances['node-oa_discussion_post-body'] = array(
'bundle' => 'oa_discussion_post',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Enter the Discussion Post Content Here',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => 1,
),
),
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Body',
'required' => 0,
'settings' => array(
'display_summary' => 1,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => 3,
),
);
$field_instances['node-oa_discussion_post-field_oa_media'] = array(
'bundle' => 'oa_discussion_post',
'default_value' => array(),
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'file',
'settings' => array(),
'type' => 'file_default',
'weight' => 6,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_oa_media',
'label' => 'Attachments',
'required' => 0,
'settings' => array(
'description_field' => 0,
'file_directory' => '',
'file_extensions' => '',
'max_filesize' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'media',
'settings' => array(
'allowed_schemes' => array(
'private' => 'private',
'public' => 'public',
'vimeo' => 'vimeo',
'youtube' => 'youtube',
),
'allowed_types' => array(
'audio' => 0,
'document' => 'document',
'image' => 'image',
'video' => 'video',
),
'browser_plugins' => array(
'media_default--media_browser_1' => 'media_default--media_browser_1',
'media_default--media_browser_my_files' => 'media_default--media_browser_my_files',
'media_internet' => 'media_internet',
'upload' => 'upload',
),
'manualcrop_crop_info' => 1,
'manualcrop_default_crop_area' => 1,
'manualcrop_enable' => 0,
'manualcrop_inline_crop' => 0,
'manualcrop_instant_crop' => FALSE,
'manualcrop_instant_preview' => 1,
'manualcrop_keyboard' => 1,
'manualcrop_maximize_default_crop_area' => 0,
'manualcrop_require_cropping' => array(),
'manualcrop_styles_list' => array(),
'manualcrop_styles_mode' => 'include',
'manualcrop_thumblist' => 0,
),
'type' => 'media_generic',
'weight' => 5,
),
);
$field_instances['node-oa_discussion_post-oa_section_ref'] = array(
'bundle' => 'oa_discussion_post',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'entityreference',
'settings' => array(
'link' => 1,
),
'type' => 'entityreference_label',
'weight' => 5,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'oa_section_ref',
'label' => 'Section',
'options_limit' => 1,
'options_limit_empty_behaviour' => 1,
'options_limit_fields' => array(
'body' => 0,
'oa_section_ref' => 0,
'og_group_ref' => 'og_group_ref',
),
'options_optomize_entityreferences' => 1,
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'apply_chosen' => 0,
),
'type' => 'options_select',
'weight' => 3,
),
);
$field_instances['node-oa_discussion_post-og_group_ref'] = array(
'bundle' => 'oa_discussion_post',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'og_ui',
'settings' => array(),
'type' => 'og_list_default',
'weight' => 4,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'og_group_ref',
'label' => 'Groups audience',
'required' => 0,
'settings' => array(
'behaviors' => array(
'og_widget' => array(
'access_override' => 1,
'admin' => array(
'widget_settings' => array(
'select2widgetajax' => array(
'match_operator' => 'CONTAINS',
'min_char' => 1,
'view_mode' => 'teaser',
'width' => '100%',
),
),
'widget_type' => 'select2widgetajax',
),
'default' => array(
'widget_settings' => array(
'select2widgetajax' => array(
'match_operator' => 'CONTAINS',
'min_char' => 1,
'view_mode' => 'teaser',
'width' => '100%',
),
),
'widget_type' => 'select2widgetajax',
),
'status' => TRUE,
),
),
'user_register_form' => FALSE,
),
'view modes' => array(
'full' => array(
'custom settings' => FALSE,
'label' => 'Full',
'type' => 'og_list_default',
),
'teaser' => array(
'custom settings' => FALSE,
'label' => 'Teaser',
'type' => 'og_list_default',
),
),
'widget' => array(
'active' => 0,
'module' => 'og',
'settings' => array(),
'type' => 'og_complex',
'weight' => 2,
),
);
$field_instances['node-oa_discussion_post-og_vocabulary'] = array(
'bundle' => 'oa_discussion_post',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'og_vocab',
'settings' => array(
'concatenate' => FALSE,
),
'type' => 'og_vocab',
'weight' => 7,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'og_vocabulary',
'label' => 'OG vocabulary',
'required' => FALSE,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'module' => 'og_vocab',
'settings' => array(),
'type' => 'og_vocab_complex',
'weight' => 6,
),
);
t('Attachments');
t('Body');
t('Custom Text');
t('Enter the Discussion Post Content Here');
t('Groups audience');
t('Node');
t('OG vocabulary');
t('Section');
t('Space');
return $field_instances;
}