411 lines
10 KiB
PHP
411 lines
10 KiB
PHP
<?php
|
|
/**
|
|
* @file
|
|
* groups_groups.features.field_instance.inc
|
|
*/
|
|
|
|
/**
|
|
* Implements hook_field_default_field_instances().
|
|
*/
|
|
function groups_groups_field_default_field_instances() {
|
|
$field_instances = array();
|
|
|
|
// Exported field_instance: 'node-group-field_ambassadors'
|
|
$field_instances['node-group-field_ambassadors'] = array(
|
|
'bundle' => 'group',
|
|
'default_value' => NULL,
|
|
'default_value_function' => '',
|
|
'deleted' => 0,
|
|
'description' => '',
|
|
'display' => array(
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'entityreference',
|
|
'settings' => array(
|
|
'link' => FALSE,
|
|
),
|
|
'type' => 'entityreference_label',
|
|
'weight' => 20,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'node',
|
|
'field_name' => 'field_ambassadors',
|
|
'label' => 'Ambassadors',
|
|
'required' => 0,
|
|
'settings' => array(
|
|
'behaviors' => array(
|
|
'prepopulate' => array(
|
|
'status' => 0,
|
|
),
|
|
),
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'active' => 1,
|
|
'module' => 'options',
|
|
'settings' => array(),
|
|
'type' => 'options_buttons',
|
|
'weight' => 13,
|
|
),
|
|
);
|
|
|
|
// Exported field_instance: 'node-group-field_geofield'
|
|
$field_instances['node-group-field_geofield'] = array(
|
|
'bundle' => 'group',
|
|
'default_value' => NULL,
|
|
'deleted' => 0,
|
|
'description' => '',
|
|
'display' => array(
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'geofield',
|
|
'settings' => array(
|
|
'data' => 'full',
|
|
),
|
|
'type' => 'geofield_wkt',
|
|
'weight' => 17,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'node',
|
|
'field_name' => 'field_geofield',
|
|
'label' => 'geofield',
|
|
'required' => FALSE,
|
|
'settings' => array(
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'active' => 1,
|
|
'module' => 'geofield',
|
|
'settings' => array(),
|
|
'type' => 'geofield_latlon',
|
|
'weight' => 8,
|
|
),
|
|
);
|
|
|
|
// Exported field_instance: 'node-group-field_group_location'
|
|
$field_instances['node-group-field_group_location'] = array(
|
|
'bundle' => 'group',
|
|
'default_value' => array(
|
|
0 => array(
|
|
'country' => 'US',
|
|
'location' => '',
|
|
),
|
|
),
|
|
'deleted' => 0,
|
|
'description' => '',
|
|
'display' => array(
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'field_group_location',
|
|
'settings' => array(),
|
|
'type' => 'field_group_location_simple',
|
|
'weight' => 16,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'node',
|
|
'field_name' => 'field_group_location',
|
|
'label' => 'Group location',
|
|
'required' => 0,
|
|
'settings' => array(
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'active' => 0,
|
|
'module' => 'field_group_location',
|
|
'settings' => array(),
|
|
'type' => 'field_group_location',
|
|
'weight' => 7,
|
|
),
|
|
);
|
|
|
|
// Exported field_instance: 'node-group-field_group_members'.
|
|
$field_instances['node-group-field_group_members'] = array(
|
|
'bundle' => 'group',
|
|
'default_value' => array(
|
|
0 => array(
|
|
'value' => 0,
|
|
),
|
|
),
|
|
'deleted' => 0,
|
|
'description' => 'Number of user group members from other source than meetup.com.',
|
|
'display' => array(
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'number',
|
|
'settings' => array(
|
|
'decimal_separator' => '.',
|
|
'prefix_suffix' => TRUE,
|
|
'scale' => 0,
|
|
'thousand_separator' => '',
|
|
),
|
|
'type' => 'number_integer',
|
|
'weight' => 22,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'node',
|
|
'field_name' => 'field_group_members',
|
|
'label' => 'group_members',
|
|
'required' => 0,
|
|
'settings' => array(
|
|
'max' => '',
|
|
'min' => '',
|
|
'prefix' => '',
|
|
'suffix' => '',
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'active' => 0,
|
|
'module' => 'number',
|
|
'settings' => array(),
|
|
'type' => 'number',
|
|
'weight' => 12,
|
|
),
|
|
);
|
|
|
|
// Exported field_instance: 'node-group-field_group_members_source'.
|
|
$field_instances['node-group-field_group_members_source'] = array(
|
|
'bundle' => 'group',
|
|
'default_value' => NULL,
|
|
'deleted' => 0,
|
|
'description' => '',
|
|
'display' => array(
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'list',
|
|
'settings' => array(),
|
|
'type' => 'list_default',
|
|
'weight' => 23,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'node',
|
|
'field_name' => 'field_group_members_source',
|
|
'label' => 'group_members_source',
|
|
'required' => 0,
|
|
'settings' => array(
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'active' => 1,
|
|
'module' => 'options',
|
|
'settings' => array(),
|
|
'type' => 'options_select',
|
|
'weight' => 11,
|
|
),
|
|
);
|
|
|
|
// Exported field_instance: 'node-group-field_group_status'.
|
|
$field_instances['node-group-field_group_status'] = array(
|
|
'bundle' => 'group',
|
|
'default_value' => array(
|
|
0 => array(
|
|
'value' => 0,
|
|
),
|
|
),
|
|
'deleted' => 0,
|
|
'description' => '',
|
|
'display' => array(
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'list',
|
|
'settings' => array(),
|
|
'type' => 'list_default',
|
|
'weight' => 18,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'node',
|
|
'field_name' => 'field_group_status',
|
|
'label' => 'Group status',
|
|
'required' => 0,
|
|
'settings' => array(
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'active' => 1,
|
|
'module' => 'options',
|
|
'settings' => array(),
|
|
'type' => 'options_select',
|
|
'weight' => 9,
|
|
),
|
|
);
|
|
|
|
// Exported field_instance: 'node-group-field_meetup_members'
|
|
$field_instances['node-group-field_meetup_members'] = array(
|
|
'bundle' => 'group',
|
|
'default_value' => array(
|
|
0 => array(
|
|
'value' => 0,
|
|
),
|
|
),
|
|
'deleted' => 0,
|
|
'description' => '',
|
|
'display' => array(
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'number',
|
|
'settings' => array(
|
|
'decimal_separator' => '.',
|
|
'prefix_suffix' => TRUE,
|
|
'scale' => 0,
|
|
'thousand_separator' => ' ',
|
|
),
|
|
'type' => 'number_integer',
|
|
'weight' => 19,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'node',
|
|
'field_name' => 'field_meetup_members',
|
|
'label' => 'meetup_members',
|
|
'required' => 0,
|
|
'settings' => array(
|
|
'max' => '',
|
|
'min' => '',
|
|
'prefix' => '',
|
|
'suffix' => '',
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'active' => 0,
|
|
'module' => 'number',
|
|
'settings' => array(),
|
|
'type' => 'number',
|
|
'weight' => 10,
|
|
),
|
|
);
|
|
|
|
// Exported field_instance: 'node-group-field_resource_links'
|
|
$field_instances['node-group-field_resource_links'] = array(
|
|
'bundle' => 'group',
|
|
'default_value' => NULL,
|
|
'deleted' => 0,
|
|
'description' => '',
|
|
'display' => array(
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'field_property_list',
|
|
'settings' => array(),
|
|
'type' => 'field_property_list_raw',
|
|
'weight' => 15,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'node',
|
|
'field_name' => 'field_resource_links',
|
|
'label' => 'Resource links',
|
|
'required' => 0,
|
|
'settings' => array(
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'active' => 0,
|
|
'module' => 'field_property_list',
|
|
'settings' => array(),
|
|
'type' => 'field_property_list',
|
|
'weight' => 5,
|
|
),
|
|
);
|
|
|
|
// Exported field_instance: 'node-group-field_timezone'.
|
|
$field_instances['node-group-field_timezone'] = array(
|
|
'bundle' => 'group',
|
|
'default_value' => array(
|
|
0 => array(
|
|
'value' => 'UTC',
|
|
),
|
|
),
|
|
'deleted' => 0,
|
|
'description' => '',
|
|
'display' => array(
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'tzfield',
|
|
'settings' => array(),
|
|
'type' => 'tzfield_default',
|
|
'weight' => 21,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'node',
|
|
'field_name' => 'field_timezone',
|
|
'label' => 'Timezone',
|
|
'required' => 0,
|
|
'settings' => array(
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'active' => 1,
|
|
'module' => 'options',
|
|
'settings' => array(),
|
|
'type' => 'options_select',
|
|
'weight' => 14,
|
|
),
|
|
);
|
|
|
|
// Translatables
|
|
// Included for use with string extractors like potx.
|
|
t('Ambassadors');
|
|
t('Group location');
|
|
t('Group status');
|
|
t('Number of user group members from other source than meetup.com.');
|
|
t('Resource links');
|
|
t('Timezone');
|
|
t('geofield');
|
|
t('group_members');
|
|
t('group_members_source');
|
|
t('meetup_members');
|
|
t('Timezone');
|
|
|
|
return $field_instances;
|
|
}
|