function messaging_simple_messaging in Messaging 6.4
Same name and namespace in other branches
- 5 messaging_simple/messaging_simple.module \messaging_simple_messaging()
- 6 messaging_simple/messaging_simple.module \messaging_simple_messaging()
- 6.2 messaging_simple/messaging_simple.module \messaging_simple_messaging()
- 6.3 messaging_simple/messaging_simple.module \messaging_simple_messaging()
- 7 messaging_simple/messaging_simple.module \messaging_simple_messaging()
Implementation of hook_messaging
File
- messaging_simple/
messaging_simple.module, line 17 - Simple messaging using html page. Messaging method plug-in
Code
function messaging_simple_messaging($op = 'info') {
switch ($op) {
case 'send methods':
$info['simple'] = array(
'title' => t('Simple'),
'name' => t('Web'),
'group' => 'web',
'address_type' => 'user',
// Which kind of address this method uses
'type' => MESSAGING_TYPE_SEND | MESSAGING_TYPE_NOQUEUE,
'glue' => '<br />',
'description' => t('Don\'t send messages but display them on a user account tab'),
'send callback' => 'messaging_simple_send_msg',
'format' => 'HTML',
'filter' => 'messaging_filter',
'anonymous' => FALSE,
);
return $info;
}
}