You are here

function messaging_devel_messaging in Messaging 7

Implementation of hook_messaging

File

messaging_devel/messaging_devel.module, line 124
Simple messaging using html page. Messaging method plug-in

Code

function messaging_devel_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_devel_send_msg',
        'address_type' => 'user',
      );
      return $info;
  }
}