-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfserver.features.inc
86 lines (81 loc) · 2.18 KB
/
fserver.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
<?php
/**
* @file
* fserver.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function fserver_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "ds" && $api == "ds") {
return array("version" => "1");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function fserver_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_node_info().
*/
function fserver_node_info() {
$items = array(
'fserver_project_page' => array(
'name' => t('Project Page'),
'base' => 'node_content',
'description' => t('Create a project page for a new theme, distribution or module.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
'fserver_release_page' => array(
'name' => t('Release Page'),
'base' => 'node_content',
'description' => t('Create a release page to describe details of a given project release.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
drupal_alter('node_info', $items);
return $items;
}
/**
* Implements hook_default_project_type().
*/
function fserver_default_project_type() {
$items = array();
$items['distribution'] = entity_import('project_type', '{
"type" : "distribution",
"description" : "Drupal distribution project.",
"uuid" : "091075b9-7999-40ba-a56f-10fac06a5d63"
}');
$items['module'] = entity_import('project_type', '{
"type" : "module",
"description" : "Drupal module project type.",
"uuid" : "826d8e65-196d-4e4c-9ddc-847e0b41cf05"
}');
$items['theme'] = entity_import('project_type', '{
"type" : "theme",
"description" : "Drupal theme project type.",
"uuid" : "30a5b10d-1cdf-4637-8201-696e289bb9b5"
}');
return $items;
}
/**
* Implements hook_default_release_type().
*/
function fserver_default_release_type() {
$items = array();
$items['release'] = entity_import('release_type', '{
"type" : "release",
"description" : "Standard project release type.",
"uuid" : "24bb28de-8cc0-4fa4-8f8c-04c7b3cbf715"
}');
return $items;
}