forked from OS2web/os2web_citizenservices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathos2web_citizenservices.features.inc
70 lines (64 loc) · 1.77 KB
/
os2web_citizenservices.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
<?php
/**
* @file
* os2web_citizenservices.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function os2web_citizenservices_ctools_plugin_api() {
list($module, $api) = func_get_args();
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function os2web_citizenservices_views_api() {
return array("api" => "3.0");
}
/**
* Implements hook_image_default_styles().
*/
function os2web_citizenservices_image_default_styles() {
$styles = array();
// Exported image style: os2web_citizenservices_image.
$styles['os2web_citizenservices_image'] = array(
'name' => 'os2web_citizenservices_image',
'effects' => array(
12 => 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' => 159,
'height' => 94,
),
'weight' => 1,
),
),
);
return $styles;
}
/**
* Implements hook_node_info().
*/
function os2web_citizenservices_node_info() {
$items = array(
'os2web_citizenservices_service' => array(
'name' => t('Borgerservices'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Titel'),
'help' => '',
),
);
return $items;
}