-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagallery.features.inc
104 lines (99 loc) · 2.33 KB
/
agallery.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
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
<?php
/**
* Implementation of hook_context_default_contexts().
*/
function agallery_context_default_contexts() {
$items = array();
$items['context_ui-section-fotogalerija'] = array(
'namespace' => 'context_ui',
'attribute' => 'section',
'value' => 'fotogalerija',
'description' => '',
'node' => array(
'0' => 'gallery',
),
'menu_trail' => array(
'gallery' => 'gallery',
),
'menu' => 'gallery',
'theme_regiontoggle' => array(
'0' => 'rsidebar',
),
'block' => array(
'views_gallery-block_2' => array(
'module' => 'views',
'delta' => 'gallery-block_2',
'weight' => 22,
'region' => 'lsidebar',
'status' => '0',
'label' => 'gallery: Seznam fotogalerij',
'type' => 'context_ui',
),
),
);
return $items;
}
/**
* Implementation of hook_imagecache_default_presets().
*/
function agallery_imagecache_default_presets() {
$items = array(
'gallery_big' => array(
'presetname' => 'gallery_big',
'actions' => array(
'0' => array(
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_scale',
'data' => array(
'width' => '800',
'height' => '600',
'upscale' => 0,
),
),
),
),
'gallery_thumb' => array(
'presetname' => 'gallery_thumb',
'actions' => array(
'0' => array(
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_scale_and_crop',
'data' => array(
'width' => '200',
'height' => '150',
),
),
),
),
);
return $items;
}
/**
* Implementation of hook_node_info().
*/
function agallery_node_info() {
$items = array(
'gallery' => array(
'name' => t('Fotogalerija'),
'module' => 'features',
'description' => t('Fotogalerija je stran s seznamom slik. Naključne slike iz fotogalerij se pojavljajo tudi na vstopni strani.'),
'has_title' => '1',
'title_label' => t('Title'),
'has_body' => '1',
'body_label' => t('Body'),
'min_word_count' => '0',
'help' => '',
),
);
return $items;
}
/**
* Implementation of hook_views_api().
*/
function agallery_views_api() {
return array(
'api' => '2',
);
}