You are here

function messaging_private_messaging in Messaging 5

Implementation of hook_messaging

File

messaging_private/messaging_private.module, line 12
Simple mail using Drupal API. Messaging method plug-in

Code

function messaging_private_messaging($op) {
  switch ($op) {
    case 'send methods':
      $info['privatemsg'] = array(
        'name' => t('Privatemsg'),
        'group' => 'web',
        'send' => 'messaging_private_send_msg',
        'type' => MESSAGING_TYPE_PUSH,
        'access' => 'access private messages',
        'glue' => "\n",
        'description' => t('Send messages through Privatemsg'),
      );
      return $info;
  }
}