function oa_subspaces_field_default_field_instances in Open Atrium Subspaces 7.2
Implements hook_field_default_field_instances().
File
Code
function oa_subspaces_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'node-oa_group-oa_parent_space'
$field_instances['node-oa_group-oa_parent_space'] = array(
'bundle' => 'oa_group',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'entityreference',
'settings' => array(
'link' => FALSE,
),
'type' => 'entityreference_label',
'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' => 'oa_parent_space',
'label' => 'Parents',
'options_limit' => 0,
'options_limit_empty_behaviour' => 0,
'options_limit_fields' => array(
'body' => 0,
'field_featured_image' => 0,
'group_access' => 0,
'group_group' => 0,
'oa_parent_space' => 0,
'og_site_role_assign_role' => 0,
'og_user_inheritance' => 0,
'og_user_permission_inheritance' => 0,
),
'required' => 0,
'settings' => array(
'behaviors' => array(
'og_widget' => array(
'admin' => array(
'widget_type' => 'options_select',
),
'default' => array(
'widget_type' => 'options_select',
),
'status' => TRUE,
),
),
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'og',
'settings' => array(),
'type' => 'og_complex',
'weight' => 6,
),
);
// Exported field_instance: 'node-oa_group-og_user_inheritance'
$field_instances['node-oa_group-og_user_inheritance'] = array(
'bundle' => 'oa_group',
'default_value' => array(
0 => array(
'value' => 1,
),
),
'deleted' => 0,
'description' => 'Set whether or not the subgroups of this group inherit this group\'s users.',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'list',
'settings' => array(),
'type' => 'list_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' => 'og_user_inheritance',
'label' => 'Group user inheritance',
'required' => 1,
'settings' => array(
'user_register_form' => FALSE,
),
'view modes' => array(
'full' => array(
'label' => 'above',
'type' => 'options_onoff',
),
'teaser' => array(
'label' => 'above',
'type' => 'options_onoff',
),
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => 7,
),
'widget_type' => 'options_select',
);
// Exported field_instance: 'node-oa_group-og_user_permission_inheritance'
$field_instances['node-oa_group-og_user_permission_inheritance'] = array(
'bundle' => 'oa_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' => 8,
),
'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_user_permission_inheritance',
'label' => 'Group user permission inheritance',
'required' => TRUE,
'settings' => array(
'user_register_form' => FALSE,
),
'view modes' => array(
'full' => array(
'label' => 'above',
'type' => 'options_onoff',
),
'teaser' => array(
'label' => 'above',
'type' => 'options_onoff',
),
),
'widget' => array(
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => 8,
),
'widget_type' => 'options_select',
);
// Exported field_instance: 'node-oa_space-oa_parent_space'
$field_instances['node-oa_space-oa_parent_space'] = array(
'bundle' => 'oa_space',
'comment_alter' => 0,
'default_value' => NULL,
'deleted' => 0,
'description' => 'The parent space to optionally inherit members from.',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'entityreference',
'settings' => array(
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 12,
),
'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_parent_space',
'label' => 'Parents',
'options_limit' => 0,
'options_limit_empty_behaviour' => 0,
'options_limit_fields' => array(
'body' => 0,
'field_featured_image' => 0,
'field_oa_banner' => 0,
'field_oa_banner_position' => 0,
'field_oa_banner_text' => 0,
'field_oa_node_types' => 0,
'field_oa_section_override' => 0,
'field_oa_space_type' => 0,
'group_access' => 0,
'group_group' => 0,
'oa_parent_space' => 0,
'og_roles_permissions' => 0,
'og_user_inheritance' => 0,
'og_user_permission_inheritance' => 0,
),
'required' => 0,
'settings' => array(
'behaviors' => array(
'og_widget' => array(
'access_override' => 0,
'admin' => array(
'widget_settings' => array(
'match_operator' => 'CONTAINS',
'size' => 60,
),
'widget_type' => 'entityreference_autocomplete',
),
'default' => array(
'widget_settings' => array(
'select2widgetajax' => array(
'match_operator' => 'CONTAINS',
'min_char' => 0,
'view_mode' => 'teaser',
'width' => '100%',
),
),
'widget_type' => 'select2widgetajax',
),
'status' => TRUE,
),
),
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'og',
'settings' => array(),
'type' => 'og_complex',
'weight' => 7,
),
);
// Exported field_instance: 'node-oa_space-og_user_inheritance'
$field_instances['node-oa_space-og_user_inheritance'] = array(
'bundle' => 'oa_space',
'default_value' => array(
0 => array(
'value' => 1,
),
),
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 11,
),
'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_user_inheritance',
'label' => 'Group user inheritance',
'required' => TRUE,
'settings' => array(
'user_register_form' => FALSE,
),
'view modes' => array(
'full' => array(
'label' => 'above',
'type' => 'options_onoff',
),
'teaser' => array(
'label' => 'above',
'type' => 'options_onoff',
),
),
'widget' => array(
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => 8,
),
'widget_type' => 'options_select',
);
// Exported field_instance: 'node-oa_space-og_user_permission_inheritance'
$field_instances['node-oa_space-og_user_permission_inheritance'] = array(
'bundle' => 'oa_space',
'default_value' => array(
0 => array(
'value' => 0,
),
),
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 13,
),
'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_user_permission_inheritance',
'label' => 'Group user permission inheritance',
'required' => TRUE,
'settings' => array(
'user_register_form' => FALSE,
),
'view modes' => array(
'full' => array(
'label' => 'above',
'type' => 'options_onoff',
),
'teaser' => array(
'label' => 'above',
'type' => 'options_onoff',
),
),
'widget' => array(
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => 9,
),
'widget_type' => 'options_select',
);
// Translatables
// Included for use with string extractors like potx.
t('Group user inheritance');
t('Group user permission inheritance');
t('Parents');
t('Set whether or not the subgroups of this group inherit this group\'s users.');
t('The parent space to optionally inherit members from.');
return $field_instances;
}