View source
<?php
function panopoly_users_field_default_field_instances() {
$field_instances = array();
$field_instances['user-user-field_user_about'] = array(
'bundle' => 'user',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 1,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'user',
'field_name' => 'field_user_about',
'label' => 'About',
'required' => 0,
'settings' => array(
'display_summary' => 0,
'text_processing' => 1,
'user_register_form' => 0,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => 2,
),
);
$field_instances['user-user-field_user_picture'] = array(
'bundle' => 'user',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'image',
'settings' => array(
'image_link' => '',
'image_style' => '',
),
'type' => 'image',
'weight' => 2,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'user',
'field_name' => 'field_user_picture',
'label' => 'Picture',
'required' => 0,
'settings' => array(
'alt_field' => 1,
'default_image' => 0,
'file_directory' => 'pictures',
'file_extensions' => 'png gif jpg jpeg',
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '80x80',
'title_field' => 0,
'user_register_form' => 0,
),
'widget' => array(
'active' => 1,
'module' => 'image',
'settings' => array(
'manualcrop_crop_info' => 1,
'manualcrop_default_crop_area' => 1,
'manualcrop_enable' => 1,
'manualcrop_inline_crop' => 0,
'manualcrop_instant_crop' => 0,
'manualcrop_instant_preview' => 1,
'manualcrop_keyboard' => 1,
'manualcrop_maximize_default_crop_area' => 1,
'manualcrop_require_cropping' => array(),
'manualcrop_styles_list' => array(
'panopoly_image_full' => 'panopoly_image_full',
),
'manualcrop_styles_mode' => 'include',
'manualcrop_thumblist' => 0,
'preview_image_style' => 'panopoly_image_featured',
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => 3,
),
);
t('About');
t('Picture');
return $field_instances;
}