forked from phase2/oa_core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oa_core.features.inc
107 lines (100 loc) · 3.02 KB
/
oa_core.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
105
106
107
<?php
/**
* @file
* oa_core.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function oa_core_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "page_manager" && $api == "pages_default") {
return array("version" => "1");
}
if ($module == "panelizer" && $api == "panelizer") {
return array("version" => "1");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function oa_core_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_image_default_styles().
*/
function oa_core_image_default_styles() {
$styles = array();
// Exported image style: oa_medium_thumbnail.
$styles['oa_medium_thumbnail'] = array(
'label' => 'oa_medium_thumbnail',
'name' => 'oa_medium_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' => 50,
'height' => 50,
),
'weight' => 1,
),
),
);
// Exported image style: oa_small_thumbnail.
$styles['oa_small_thumbnail'] = array(
'label' => 'oa_small_thumbnail',
'name' => 'oa_small_thumbnail',
'effects' => array(
2 => 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' => 30,
'height' => 30,
),
'weight' => 1,
),
),
);
return $styles;
}
/**
* Implements hook_node_info().
*/
function oa_core_node_info() {
$items = array(
'oa_group' => array(
'name' => t('Group'),
'base' => 'node_content',
'description' => t('A collection of users that exists across all spaces.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'oa_space' => array(
'name' => t('Space'),
'base' => 'node_content',
'description' => t('A collection of content and users (members)'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
return $items;
}