You are here

function messaging_debug_messaging in Messaging 6.3

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

Implementation of hook_messaging

File

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

Code

function messaging_debug_messaging($op = 'info', $type = NULL) {
  switch ($op) {
    case 'send methods':
      $info['debug'] = array(
        'title' => t('Debug'),
        'name' => t('Debug'),
        'destination' => 'name',
        'type' => MESSAGING_TYPE_PUSH,
        'glue' => '<br />',
        'description' => t('The messages will be just logged (And printed on page if Devel module enabled).'),
        'send callback' => 'messaging_debug_send_msg',
      );
      return $info;
  }
}