function twitter_actions_rules_action_info in Twitter 7.6
Same name and namespace in other branches
- 7.3 twitter_actions/twitter_actions.rules.inc \twitter_actions_rules_action_info()
- 7.4 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' => 'text',
'label' => t('Sender'),
'description' => t('Twitter account which will be used. ' . 'By selecting [current user] the rule will check if the user ' . 'has authenticated a Twitter account to use.'),
'options list' => '_twitter_rules_account_options',
'restriction' => 'input',
'default mode' => 'input',
),
),
'base' => 'twitter_actions_set_status',
'access callback' => 'rules_twitter_actions_access_callback',
),
);
}