You are here

function hook_default_message_type in Message 7

Define default message type configurations.

Return value

An array of default message types, keyed by machine names.

See also

hook_default_message_type_alter()

2 functions implement hook_default_message_type()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

message_example_default_message_type in message_example/message_example.features.inc
Implements hook_default_message_type().
message_og_example_default_message_type in message_og_example/message_og_example.features.inc
Implements hook_default_message_type().

File

./message.api.php, line 74
Hooks provided by the Message module.

Code

function hook_default_message_type() {
  $defaults['main'] = message_type_create('example_create_node', array(
    'description' => 'Type description',
    'argument_keys' => array(
      '!teaser',
      '!body',
      '@string',
    ),
    'message_text' => array(
      LANGUAGE_NONE => array(
        array(
          'value' => 'Example text.',
        ),
      ),
    ),
    'language' => 'en',
  ));
  return $defaults;
}