forked from ec-europa/nexteuropa-newsroom-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nexteuropa_newsroom.features.inc
63 lines (59 loc) · 1.49 KB
/
nexteuropa_newsroom.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
<?php
/**
* @file
* nexteuropa_newsroom.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function nexteuropa_newsroom_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "context" && $api == "context") {
return array("version" => "3");
}
if ($module == "ds" && $api == "ds") {
return array("version" => "1");
}
if ($module == "feeds" && $api == "feeds_importer_default") {
return array("version" => "1");
}
if ($module == "feeds_tamper" && $api == "feeds_tamper_default") {
return array("version" => "2");
}
if ($module == "field_group" && $api == "field_group") {
return array("version" => "1");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function nexteuropa_newsroom_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_node_info().
*/
function nexteuropa_newsroom_node_info() {
$items = array(
'newsroom_item' => array(
'name' => t('Newsroom Item'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'newsroom_newsletter_issue' => array(
'name' => t('Newsroom newsletter issue'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
drupal_alter('node_info', $items);
return $items;
}