-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiscimport_discgolf.features.inc
51 lines (48 loc) · 1.19 KB
/
discimport_discgolf.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
<?php
/**
* @file
* discimport_discgolf.features.inc
*/
/**
* Implements hook_commerce_product_default_types().
*/
function discimport_discgolf_commerce_product_default_types() {
$items = array(
'golfdiscs' => array(
'type' => 'golfdiscs',
'name' => 'Golfdiscs',
'description' => '<em>Golfdiscs</em> har både farve, plasttype og vægt.',
'help' => '',
'revision' => 1,
),
);
return $items;
}
/**
* Implements hook_ctools_plugin_api().
*/
function discimport_discgolf_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "commerce_autosku" && $api == "autosku_pattern") {
return array("version" => "1");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_node_info().
*/
function discimport_discgolf_node_info() {
$items = array(
'discgolf' => array(
'name' => t('Discgolf'),
'base' => 'node_content',
'description' => t('<em>Discgolf</em> indeholder produktvariationer med farve, plasttype og vægt.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
drupal_alter('node_info', $items);
return $items;
}