You are here

function messaging_simple_messaging in Messaging 6.2

Same name and namespace in other branches
  1. 5 messaging_simple/messaging_simple.module \messaging_simple_messaging()
  2. 6.4 messaging_simple/messaging_simple.module \messaging_simple_messaging()
  3. 6 messaging_simple/messaging_simple.module \messaging_simple_messaging()
  4. 6.3 messaging_simple/messaging_simple.module \messaging_simple_messaging()
  5. 7 messaging_simple/messaging_simple.module \messaging_simple_messaging()

Implementation of hook_messaging

File

messaging_simple/messaging_simple.module, line 119
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',
        'type' => MESSAGING_TYPE_PULL,
        'glue' => '<br />',
        'description' => t('Don\'t send messages but display them on a user account tab'),
        'send callback' => 'messaging_simple_send_msg',
        'destination' => 'uid',
        'format' => 'HTML',
      );
      return $info;
  }
}