-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathding_library.features.inc
More file actions
149 lines (140 loc) · 4.32 KB
/
ding_library.features.inc
File metadata and controls
149 lines (140 loc) · 4.32 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?php
/**
* @file
* ding_library.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function ding_library_ctools_plugin_api() {
list($module, $api) = func_get_args();
if ($module == "openlayers" && $api == "openlayers_maps") {
return array("version" => "1");
}
list($module, $api) = func_get_args();
if ($module == "page_manager" && $api == "pages_default") {
return array("version" => "1");
}
list($module, $api) = func_get_args();
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function ding_library_views_api() {
list($module, $api) = func_get_args();
if ($module == "views" && $api == "views_default") {
return array("version" => "3.0");
}
}
/**
* Implements hook_image_default_styles().
*/
function ding_library_image_default_styles() {
$styles = array();
// Exported image style: ding_library_about.
$styles['ding_library_about'] = array(
'name' => 'ding_library_about',
'effects' => array(
2 => array(
'label' => 'Skalér',
'help' => 'Skalering bevarer billedets højde-bredde-forhold. Hvis kun den ene dimension angives vil den anden blive beregnet.',
'effect callback' => 'image_scale_effect',
'dimensions callback' => 'image_scale_dimensions',
'form callback' => 'image_scale_form',
'summary theme' => 'image_scale_summary',
'module' => 'image',
'name' => 'image_scale',
'data' => array(
'width' => '506',
'height' => '',
'upscale' => 0,
),
'weight' => '1',
),
),
);
// Exported image style: ding_library_header.
$styles['ding_library_header'] = array(
'name' => 'ding_library_header',
'effects' => array(
1 => array(
'label' => 'Skalér og beskær',
'help' => 'Skalering og beskæring bevarer billedets højde-bredde-forhold og beskærer derefter den største dimension. Det er nyttigt til at generere kvadratiske thumbnails uden at forvrænge billedet.',
'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' => '710',
'height' => '208',
),
'weight' => '1',
),
),
);
// Exported image style: ding_library_list.
$styles['ding_library_list'] = array(
'name' => 'ding_library_list',
'effects' => array(
2 => array(
'label' => 'Skalér',
'help' => 'Skalering bevarer billedets højde-bredde-forhold. Hvis kun den ene dimension angives vil den anden blive beregnet.',
'effect callback' => 'image_scale_effect',
'dimensions callback' => 'image_scale_dimensions',
'form callback' => 'image_scale_form',
'summary theme' => 'image_scale_summary',
'module' => 'image',
'name' => 'image_scale',
'data' => array(
'width' => '140',
'height' => '140',
'upscale' => 0,
),
'weight' => '2',
),
),
);
// Exported image style: ding_library_list_w_190_h_140.
$styles['ding_library_list_w_190_h_140'] = array(
'name' => 'ding_library_list_w_190_h_140',
'effects' => array(
1 => array(
'label' => 'Resize',
'help' => 'Resizing will make images an exact set of dimensions. This may cause images to be stretched or shrunk disproportionately.',
'effect callback' => 'image_resize_effect',
'dimensions callback' => 'image_resize_dimensions',
'form callback' => 'image_resize_form',
'summary theme' => 'image_resize_summary',
'module' => 'image',
'name' => 'image_resize',
'data' => array(
'width' => '190',
'height' => '140',
),
'weight' => '1',
),
),
);
return $styles;
}
/**
* Implements hook_node_info().
*/
function ding_library_node_info() {
$items = array(
'ding_library' => array(
'name' => t('Library'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Navn'),
'help' => '',
),
);
return $items;
}