-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwechat_request_message_types.inc
More file actions
68 lines (61 loc) · 1.48 KB
/
wechat_request_message_types.inc
File metadata and controls
68 lines (61 loc) · 1.48 KB
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
<?php
/**
* @file
* message_types.features.inc
*/
/**
* Implements hook_default_wechat_request_message_type().
*/
function wechat_default_wechat_request_message_type() {
$items = array();
$items['text'] = entity_import('wechat_request_message_type', '{
"type" : "text",
"label" : "Text",
"weight" : "0",
"data" : null,
"rdf_mapping" : []
}');
$items['image'] = entity_import('wechat_request_message_type', '{
"type" : "image",
"label" : "Image",
"weight" : "1",
"data" : null,
"rdf_mapping" : []
}');
$items['voice'] = entity_import('wechat_request_message_type', '{
"type" : "voice",
"label" : "Voice",
"weight" : "2",
"data" : null,
"rdf_mapping" : []
}');
$items['video'] = entity_import('wechat_request_message_type', '{
"type" : "video",
"label" : "Video",
"weight" : "3",
"data" : null,
"rdf_mapping" : []
}');
$items['location'] = entity_import('wechat_request_message_type', '{
"type" : "location",
"label" : "Location",
"weight" : "4",
"data" : null,
"rdf_mapping" : []
}');
$items['link'] = entity_import('wechat_request_message_type', '{
"type" : "link",
"label" : "Link",
"weight" : "5",
"data" : null,
"rdf_mapping" : []
}');
$items['event'] = entity_import('wechat_request_message_type', '{
"type" : "event",
"label" : "Event",
"weight" : "6",
"data" : null,
"rdf_mapping" : []
}');
return $items;
}