function twitter_actions_rules_action_info in Twitter 7.4
Same name and namespace in other branches
- 7.6 twitter_actions/twitter_actions.rules.inc \twitter_actions_rules_action_info()
- 7.3 twitter_actions/twitter_actions.rules.inc \twitter_actions_rules_action_info()
- 7.5 twitter_actions/twitter_actions.rules.inc \twitter_actions_rules_action_info()
Implements hook_rules_action_info() on behalf of the Twitter module.
File
- twitter_actions/
twitter_actions.rules.inc, line 10 - Provides Rules integration in order to post tweets.
Code
function twitter_actions_rules_action_info() {
return array(
'rules_core_twitter_actions_set_status_action' => array(
'label' => t('Post a message to Twitter'),
'group' => t('Twitter'),
'parameter' => array(
'message' => array(
'type' => 'text',
'label' => t('Message'),
'description' => t("The content of the tweet."),
),
'sender' => array(
'type' => 'user',
'label' => t('Sender'),
'description' => t("User whose Twitter account will be used."),
),
),
'base' => 'twitter_actions_set_status',
'access callback' => 'rules_twitter_actions_access_callback',
),
);
}