function oa_users_field_default_field_instances in Open Atrium Core 7.2
Implements hook_field_default_field_instances().
File
- modules/
oa_users/ oa_users.features.field_instance.inc, line 10 - oa_users.features.field_instance.inc
Code
function oa_users_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'user-user-field_user_display_name'.
$field_instances['user-user-field_user_display_name'] = array(
'bundle' => 'user',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Full name to be displayed to other users',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 5,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'user',
'field_name' => 'field_user_display_name',
'label' => 'Display Name',
'required' => 1,
'settings' => array(
'linkit' => array(
'enable' => 0,
'insert_plugin' => '',
),
'text_processing' => 0,
'user_register_form' => 1,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 2,
),
);
// Exported field_instance: 'user-user-og_user_node'.
$field_instances['user-user-og_user_node'] = array(
'bundle' => 'user',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'og_ui',
'settings' => array(),
'type' => 'og_list_default',
'weight' => 0,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'user',
'field_name' => 'og_user_node',
'label' => 'Group membership',
'required' => FALSE,
'settings' => array(
'behaviors' => array(
'og_widget' => array(
'admin' => array(
'widget_type' => 'entityreference_autocomplete',
),
'default' => array(
'widget_type' => 'options_select',
),
'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(
'module' => 'og',
'settings' => array(),
'type' => 'og_complex',
'weight' => 7,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Display Name');
t('Full name to be displayed to other users');
t('Group membership');
return $field_instances;
}