function messaging_twitter_messaging in Messaging 6
Same name and namespace in other branches
- 6.4 messaging_twitter/messaging_twitter.module \messaging_twitter_messaging()
- 6.2 messaging_twitter/messaging_twitter.module \messaging_twitter_messaging()
- 6.3 messaging_twitter/messaging_twitter.module \messaging_twitter_messaging()
Implementation of hook_messaging
File
- messaging_twitter/
messaging_twitter.module, line 14 - Messaging Twitter sending method
Code
function messaging_twitter_messaging($op = 'info') {
switch ($op) {
case 'send methods':
$info['twitter_dm'] = array(
'title' => t('Twitter Direct Message'),
'name' => t('Twitter Direct Message'),
'group' => 'twitter',
'type' => MESSAGING_TYPE_SEND,
'glue' => ' ',
'description' => t("Send as a Twitter direct message."),
'send callback' => 'messaging_twitter_send_dm',
'destination callback' => 'messaging_twitter_user_destination',
'system accounts' => TRUE,
// Supports multiple sending accounts
'account type' => 'twitter',
);
$info['twitter_at'] = array(
'title' => t('Twitter @ Message'),
'name' => t('Twitter @ Message'),
'group' => 'twitter',
'type' => MESSAGING_TYPE_SEND,
'glue' => ' ',
'description' => t("Send as a Twitter @ message."),
'send callback' => 'messaging_twitter_send_at',
'destination callback' => 'messaging_twitter_user_destination',
'system accounts' => TRUE,
// Supports multiple sending accounts
'account type' => 'twitter',
);
return $info;
}
}