-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdandelion_features.features.inc
60 lines (58 loc) · 1.56 KB
/
dandelion_features.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
<?php
/**
* @file
* dandelion_features.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function dandelion_features_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "file_entity" && $api == "file_default_displays") {
return array("version" => "1");
}
if ($module == "file_entity" && $api == "file_type") {
return array("version" => "1");
}
if ($module == "page_manager" && $api == "pages_default") {
return array("version" => "1");
}
if ($module == "picture" && $api == "default_picture_mapping") {
return array("version" => "2");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_node_info().
*/
function dandelion_features_node_info() {
$items = array(
'admin_help_page' => array(
'name' => t('Admin help page'),
'base' => 'node_content',
'description' => t('A help page in the administration area.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'book' => array(
'name' => t('Book page'),
'base' => 'node_content',
'description' => t('<em>Books</em> have a built-in hierarchical navigation. Use for handbooks or tutorials.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'page' => array(
'name' => t('Page'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
drupal_alter('node_info', $items);
return $items;
}