You are here

function messaging_simple_messaging in Messaging 6.3

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.2 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 139
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_SEND,
        'glue' => '<br />',
        'description' => t('Don\'t send messages but display them on a user account tab'),
        'destination' => 'uid',
        'format' => 'HTML',
        'class' => 'Messaging_Method_Simple',
      );
      return $info;
  }
}