You are here

function message_example_message_default_messages in Message 6

Implementation of hook_message_default_messages().

File

modules/message_example/message_example.features.inc, line 99

Code

function message_example_message_default_messages() {
  $export = array();
  $message = new stdClass();
  $message->disabled = FALSE;

  /* Edit this to true to make a default message disabled initially */
  $message->api_version = 1;
  $message->name = 'message_example_node_insert';
  $message->description = 'Create a new content - and show teaser.';
  $message->tag = '';
  $message->message = 'created <a href="@link">@title</a>. <br />!teaser';
  $message->language = 'en';
  $export['message_example_node_insert'] = $message;
  $message = new stdClass();
  $message->disabled = FALSE;

  /* Edit this to true to make a default message disabled initially */
  $message->api_version = 1;
  $message->name = 'message_example_comment_insert';
  $message->description = 'Create a new comment.';
  $message->tag = '';
  $message->message = 'commented "<a href="@link">@title</a>" about @node-title.';
  $message->language = 'en';
  $export['message_example_comment_insert'] = $message;
  $message = new stdClass();
  $message->disabled = FALSE;

  /* Edit this to true to make a default message disabled initially */
  $message->api_version = 1;
  $message->name = 'message_example_flag_node';
  $message->description = 'User flagged a content (node).';
  $message->tag = '';
  $message->message = 'is following <a href="@link">@title</a> content.';
  $message->language = '';
  $export['message_example_flag_node'] = $message;
  $message = new stdClass();
  $message->disabled = FALSE;

  /* Edit this to true to make a default message disabled initially */
  $message->api_version = 1;
  $message->name = 'message_example_flag_user';
  $message->description = 'User flagged another user.';
  $message->tag = '';
  $message->message = 'and !friend are now friends.';
  $message->language = '';
  $export['message_example_flag_user'] = $message;
  return $export;
}