You are here

function messaging_debug_messaging in Messaging 5

Same name and namespace in other branches
  1. 6 messaging_debug/messaging_debug.module \messaging_debug_messaging()
  2. 6.2 messaging_debug/messaging_debug.module \messaging_debug_messaging()
  3. 6.3 messaging_debug/messaging_debug.module \messaging_debug_messaging()

Implementation of hook_messaging

File

messaging_debug/messaging_debug.module, line 79
Simple messaging using html page. Messaging method plug-in

Code

function messaging_debug_messaging($op = 'info') {
  switch ($op) {
    case 'send methods':
      $info['debug'] = array(
        'name' => t('Debug'),
        'destination' => 'name',
        'send' => 'messaging_debug_send_msg',
        'send_user' => 'messaging_debug_send_user',
        'type' => MESSAGING_TYPE_PULL,
        'glue' => '<br />',
        'description' => t('The messages will be just logged to watchdog.'),
      );
      return $info;
  }
}