You are here

function twitter_actions_less_140 in Twitter 7.6

Same name and namespace in other branches
  1. 7.3 twitter_actions/twitter_actions.rules.inc \twitter_actions_less_140()
  2. 7.4 twitter_actions/twitter_actions.rules.inc \twitter_actions_less_140()
  3. 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 101
Provides Rules integration in order to post tweets.

Code

function twitter_actions_less_140($element) {
  return strlen($element['text']) < 141;
}