function twitter_actions_less_140 in Twitter 7.4
Same name and namespace in other branches
- 7.6 twitter_actions/twitter_actions.rules.inc \twitter_actions_less_140()
- 7.3 twitter_actions/twitter_actions.rules.inc \twitter_actions_less_140()
- 7.5 twitter_actions/twitter_actions.rules.inc \twitter_actions_less_140()
The callback function for the Rules condition
Parameters
$element: $element['text']: The text of the message.
Return value
TRUE if the message length is less than 141 characters.
1 string reference to 'twitter_actions_less_140'
- twitter_actions_rules_condition_info in twitter_actions/
twitter_actions.rules.inc - Implements hook_rules_condition_info().
File
- twitter_actions/
twitter_actions.rules.inc, line 117 - Provides Rules integration in order to post tweets.
Code
function twitter_actions_less_140($element) {
return strlen($element['text']) < 141;
}