forked from OS2web/os2web_cp_service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
os2web_cp_service.features.inc
executable file
·55 lines (52 loc) · 1.35 KB
/
os2web_cp_service.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
<?php
/**
* @file
* os2web_cp_service.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function os2web_cp_service_ctools_plugin_api() {
list($module, $api) = func_get_args();
if ($module == "context" && $api == "context") {
return array("version" => "3");
}
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 os2web_cp_service_views_api() {
return array("api" => "3.0");
}
/**
* Implements hook_node_info().
*/
function os2web_cp_service_node_info() {
$items = array(
'os2web_cp_service_cp_case' => array(
'name' => t('CP Case'),
'base' => 'node_content',
'description' => t('Holds a case, published via the case publishing service.'),
'has_title' => '1',
'title_label' => t('Sagstitel'),
'help' => '',
),
'os2web_cp_service_cp_document' => array(
'name' => t('CP Document'),
'base' => 'node_content',
'description' => t('Holds a document from the case publishing service.'),
'has_title' => '1',
'title_label' => t('Dokumenttitel'),
'help' => '',
),
);
return $items;
}