You are here

function drupagram_actions_less_140 in Drupagram 7

The callback function for the Rules condition

Parameters

$element: $element['user']: The user to be checked for.

Return value

TRUE if the user has linked his/her drupagram account.

1 string reference to 'drupagram_actions_less_140'
drupagram_actions_rules_condition_info in drupagram_actions/drupagram_actions.rules.inc
Implements hook_rules_condition_info().

File

drupagram_actions/drupagram_actions.rules.inc, line 109
Provide better intergration into the rules module

Code

function drupagram_actions_less_140($element) {
  return drupal_strlen($element['text']) < 141;
}