-
Notifications
You must be signed in to change notification settings - Fork 1
/
leaflet_custom.features.inc
60 lines (58 loc) · 1.25 KB
/
leaflet_custom.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
* leaflet_custom.features.inc
*/
/**
* Implements hook_eck_bundle_info().
*/
function leaflet_custom_eck_bundle_info() {
$items = array(
'leaflet_custom_map_leaflet_custom_map' => array(
'machine_name' => 'leaflet_custom_map_leaflet_custom_map',
'entity_type' => 'leaflet_custom_map',
'name' => 'leaflet_custom_map',
'label' => 'Leaflet Custom map',
),
);
return $items;
}
/**
* Implements hook_eck_entity_type_info().
*/
function leaflet_custom_eck_entity_type_info() {
$items = array(
'leaflet_custom_map' => array(
'name' => 'leaflet_custom_map',
'label' => 'Leaflet Custom map',
'properties' => array(
'title' => array(
'label' => 'Title',
'type' => 'text',
'behavior' => 'title',
),
'uid' => array(
'label' => 'Author',
'type' => 'integer',
'behavior' => 'author',
),
'created' => array(
'label' => 'Created',
'type' => 'integer',
'behavior' => 'created',
),
'changed' => array(
'label' => 'Changed',
'type' => 'integer',
'behavior' => 'changed',
),
'language' => array(
'label' => 'Entity language',
'type' => 'language',
'behavior' => 'language',
),
),
),
);
return $items;
}