forked from vejlebib/ding_staff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ding_staff.features.inc
72 lines (66 loc) · 1.88 KB
/
ding_staff.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
* @file
* ding_staff.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function ding_staff_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "field_group" && $api == "field_group") {
return array("version" => "1");
}
if ($module == "page_manager" && $api == "pages_default") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function ding_staff_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_image_default_styles().
*/
function ding_staff_image_default_styles() {
$styles = array();
// Exported image style: ding_staff_thumbnail.
$styles['ding_staff_thumbnail'] = array(
'name' => 'ding_staff_thumbnail',
'effects' => array(
1 => array(
'label' => 'Scale and crop',
'help' => 'Scale and crop will maintain the aspect-ratio of the original image, then crop the larger dimension. This is most useful for creating perfectly square thumbnails without stretching the image.',
'effect callback' => 'image_scale_and_crop_effect',
'dimensions callback' => 'image_resize_dimensions',
'form callback' => 'image_resize_form',
'summary theme' => 'image_resize_summary',
'module' => 'image',
'name' => 'image_scale_and_crop',
'data' => array(
'width' => 60,
'height' => 60,
),
'weight' => 1,
),
),
'label' => 'ding_staff_thumbnail',
);
return $styles;
}
/**
* Implements hook_default_profile2_type().
*/
function ding_staff_default_profile2_type() {
$items = array();
$items['ding_staff_profile'] = entity_import('profile2_type', '{
"userCategory" : true,
"userView" : true,
"type" : "ding_staff_profile",
"label" : "Staff",
"weight" : "0",
"data" : { "registration" : 0, "use_page" : 0 }
}');
return $items;
}