-
Notifications
You must be signed in to change notification settings - Fork 2
/
inventory_views.features.inc
55 lines (52 loc) · 1.15 KB
/
inventory_views.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
* inventory_views.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function inventory_views_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "services" && $api == "services") {
return array("version" => "3");
}
}
/**
* Implements hook_views_api().
*/
function inventory_views_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_node_info().
*/
function inventory_views_node_info() {
$items = array(
'contract' => array(
'name' => t('Contract'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'server' => array(
'name' => t('Server'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('FQDN'),
'help' => '',
),
'website' => array(
'name' => t('Website'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Name'),
'help' => '',
),
);
drupal_alter('node_info', $items);
return $items;
}