function messaging_privatemsg_messaging in Messaging 6.3
Same name and namespace in other branches
- 6.4 messaging_privatemsg/messaging_privatemsg.module \messaging_privatemsg_messaging()
- 6 messaging_privatemsg/messaging_privatemsg.module \messaging_privatemsg_messaging()
- 6.2 messaging_privatemsg/messaging_privatemsg.module \messaging_privatemsg_messaging()
Implementation of hook_messaging
File
- messaging_privatemsg/
messaging_privatemsg.module, line 12 - Simple mail using Drupal API. Messaging method plug-in
Code
function messaging_privatemsg_messaging($op) {
switch ($op) {
case 'send methods':
$info['privatemsg'] = array(
'title' => 'Privatemsg',
'name' => t('Private message'),
'group' => 'web',
'type' => MESSAGING_TYPE_SEND,
'access' => 'read privatemsg',
'glue' => "\n",
'description' => t('Send messages through Privatemsg'),
'send callback' => 'messaging_privatemsg_send_msg',
// Sending callback
'destination' => 'uid',
);
return $info;
}
}