You are here

function messaging_sms_messaging in Messaging 5

Same name and namespace in other branches
  1. 6.4 messaging_sms/messaging_sms.module \messaging_sms_messaging()
  2. 6 messaging_sms/messaging_sms.module \messaging_sms_messaging()
  3. 6.2 messaging_sms/messaging_sms.module \messaging_sms_messaging()
  4. 6.3 messaging_sms/messaging_sms.module \messaging_sms_messaging()

Implementation of hook_messaging

File

messaging_sms/messaging_sms.module, line 10
SMS Messsaging using SMS Framework. Messaging method plug-in

Code

function messaging_sms_messaging($op = 'info') {
  switch ($op) {
    case 'send methods':
      $info['sms'] = array(
        'name' => t('SMS'),
        'group' => 'sms',
        // Class of send method
        'send' => 'messaging_sms_send_msg',
        'send_user' => 'messaging_sms_send_user',
        'type' => MESSAGING_TYPE_PUSH,
        'render' => 'messaging_sms_render_message',
        'glue' => '',
        'description' => t('Send SMS using SMS Framework.'),
      );
      return $info;
  }
}