View source
<?php
function commons_document_fieldgroup_default_groups() {
$groups = array();
$groups['document-group_promote_content'] = array(
'group_type' => 'standard',
'type_name' => 'document',
'group_name' => 'group_promote_content',
'label' => 'Promote content',
'settings' => array(
'form' => array(
'style' => 'fieldset',
'description' => '',
),
'display' => array(
'weight' => '-1',
'4' => array(
'format' => 'fieldset',
'exclude' => 1,
),
'label' => 'above',
'teaser' => array(
'format' => 'fieldset',
'exclude' => 1,
),
'full' => array(
'format' => 'fieldset_collapsed',
'exclude' => 0,
),
'description' => '',
'2' => array(
'format' => 'fieldset',
'exclude' => 0,
),
'3' => array(
'format' => 'fieldset',
'exclude' => 0,
),
'token' => array(
'format' => 'fieldset',
'exclude' => 0,
),
),
),
'weight' => '-1',
'fields' => array(
'0' => 'field_group_sticky',
'1' => 'field_featured_content',
),
);
$groups['document-group_upload'] = array(
'group_type' => 'standard',
'type_name' => 'document',
'group_name' => 'group_upload',
'label' => 'Upload',
'settings' => array(
'form' => array(
'style' => 'fieldset',
'description' => '',
),
'display' => array(
'weight' => '-2',
'4' => array(
'format' => 'fieldset',
'exclude' => 1,
),
'description' => '',
'label' => 'above',
'teaser' => array(
'format' => 'fieldset',
'exclude' => 0,
),
'full' => array(
'format' => 'fieldset',
'exclude' => 0,
),
'2' => array(
'format' => 'fieldset',
'exclude' => 0,
),
'3' => array(
'format' => 'fieldset',
'exclude' => 0,
),
'token' => array(
'format' => 'fieldset',
'exclude' => 0,
),
),
),
'weight' => '-2',
'fields' => array(
'0' => 'field_file',
),
);
t('Promote content');
t('Upload');
return $groups;
}