Skip to content

Commit a184873

Browse files
wundoamitaibu
authored andcommitted
Improving hook_default_message_type documentation
1 parent 862e1be commit a184873

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

message.api.php

+14-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,20 @@ function hook_message_view_alter(&$build) {
7373
*/
7474
function hook_default_message_type() {
7575
$defaults['main'] = entity_create('message_type', array(
76+
'description' => 'Type description',
77+
'argument_keys' => array(
78+
'!teaser',
79+
'!body',
80+
'@string',
81+
),
82+
'message_text' => array(
83+
LANGUAGE_NONE => array(
84+
array('value' => 'Example text.'),
85+
),
86+
),
87+
'language' => 'en',
7688
));
89+
7790
return $defaults;
7891
}
7992

@@ -135,4 +148,4 @@ function hook_default_message_type_category_alter(array &$defaults) {
135148

136149
/**
137150
* @} End of "addtogroup hooks".
138-
*/
151+
*/

0 commit comments

Comments
 (0)