-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgnl_schema.features.inc
139 lines (134 loc) · 3.18 KB
/
gnl_schema.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
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
<?php
/**
* @file
* gnl_schema.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function gnl_schema_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "boxes" && $api == "box") {
return array("version" => "1");
}
if ($module == "context" && $api == "context") {
return array("version" => "3");
}
if ($module == "data" && $api == "data_default") {
return array("version" => "1");
}
if ($module == "services" && $api == "services") {
return array("version" => "3");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function gnl_schema_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_flag_default_flags().
*/
function gnl_schema_flag_default_flags() {
$flags = array();
// Exported flag: "Flag".
$flags['flag'] = array(
'entity_type' => 'node',
'title' => 'Flag',
'global' => 0,
'types' => array(
0 => 'grant',
1 => 'org',
),
'flag_short' => 'Flag this item',
'flag_long' => '',
'flag_message' => '',
'unflag_short' => 'Unflag this item',
'unflag_long' => '',
'unflag_message' => '',
'unflag_denied_text' => '',
'link_type' => 'normal',
'weight' => 0,
'show_in_links' => array(
'full' => 0,
'teaser' => 0,
'rss' => 0,
'search_index' => 0,
'search_result' => 0,
'diff_standard' => 0,
'grantor_only' => 0,
'grantee_only' => 0,
'token' => 0,
),
'show_as_field' => 0,
'show_on_form' => 0,
'access_author' => '',
'show_contextual_link' => FALSE,
'i18n' => 0,
'module' => 'gnl_schema',
'locked' => array(
0 => 'name',
),
'api_version' => 3,
);
return $flags;
}
/**
* Implements hook_node_info().
*/
function gnl_schema_node_info() {
$items = array(
'board_term' => array(
'name' => t('Board term'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Title (unused)'),
'help' => '',
),
'grant' => array(
'name' => t('Grant'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'news' => array(
'name' => t('News clipping'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'org' => array(
'name' => t('Organization'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Name'),
'help' => '',
),
'page' => array(
'name' => t('Basic page'),
'base' => 'node_content',
'description' => t('Use <em>basic pages</em> for your static content, such as an \'About us\' page.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'person' => array(
'name' => t('Person'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Name'),
'help' => '',
),
);
return $items;
}