-
Notifications
You must be signed in to change notification settings - Fork 1
/
ting_dk5.features.inc
36 lines (33 loc) · 1.9 KB
/
ting_dk5.features.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* @file
* ting_dk5.features.inc
*
* Warning!!! This file was edited manually to correctly reorder fields.
*/
/**
* Implements hook_field_default_fields_alter().
*/
function ting_dk5_field_default_fields_alter(&$data) {
if (isset($data['ting_object-ting_object-ting_details_classification'])) {
$data['ting_object-ting_object-ting_details_classification']['field_instance']['display']['teaser']['label'] = 'inline'; /* WAS: 'above' */
$data['ting_object-ting_object-ting_details_classification']['field_instance']['display']['teaser']['module'] = 'ding_ting_frontend'; /* WAS: '' */
$data['ting_object-ting_object-ting_details_classification']['field_instance']['display']['teaser']['type'] = 'ting_details_single'; /* WAS: 'hidden' */
// Set DK5 after author field.
$data['ting_object-ting_object-ting_details_classification']['field_instance']['display']['teaser']['weight']
= $data['ting_object-ting_object-ting_author']['field_instance']['display']['teaser']['weight'] + 1;
}
}
/**
* Implements hook_field_group_info_alter().
*/
function ting_dk5_field_group_info_alter(&$data) {
if (isset($data['group_content|ting_object|ting_object|teaser'])) {
$data['group_content|ting_object|ting_object|teaser']->data['children']['0'] = 'ting_series'; /* WAS: 'ting_title' */
$data['group_content|ting_object|ting_object|teaser']->data['children']['1'] = 'ting_abstract'; /* WAS: 'ting_series' */
$data['group_content|ting_object|ting_object|teaser']->data['children']['2'] = 'ting_author'; /* WAS: 'ting_abstract' */
$data['group_content|ting_object|ting_object|teaser']->data['children']['3'] = 'ting_subjects'; /* WAS: 'ting_author' */
$data['group_content|ting_object|ting_object|teaser']->data['children']['4'] = 'ting_details_classification'; /* WAS: 'ting_subjects' */
$data['group_content|ting_object|ting_object|teaser']->data['weight'] = '2'; /* WAS: '1' */
}
}