function twitter_actions_rules_condition_info in Twitter 7.5
Same name and namespace in other branches
- 7.6 twitter_actions/twitter_actions.rules.inc \twitter_actions_rules_condition_info()
- 7.3 twitter_actions/twitter_actions.rules.inc \twitter_actions_rules_condition_info()
- 7.4 twitter_actions/twitter_actions.rules.inc \twitter_actions_rules_condition_info()
Implements hook_rules_condition_info().
File
- twitter_actions/
twitter_actions.rules.inc, line 70 - Provides Rules integration in order to post tweets.
Code
function twitter_actions_rules_condition_info() {
$items = array();
$items['rules_core_twitter_conditions_text_is_under_140'] = array(
'group' => t('Twitter'),
'named parameter' => TRUE,
'parameter' => array(
'text' => array(
'type' => 'text',
'label' => t('Text to check'),
),
),
'label' => t('Text is under 140 characters'),
'help' => t('Returns TRUE if the length of the text is 140 or less.'),
'base' => 'twitter_actions_less_140',
);
return $items;
}