function sms_message_contains_keyword in SMS Framework 7
Condition sms_message_contains_keyword
1 string reference to 'sms_message_contains_keyword'
- SmsContainsKeywordConditionTestCase::testSmsContainsKeywordCondition in tests/
sms.rules.test - Tests whether the sms rules condition for sms contains keyword works as it is supposed to.
File
- ./
sms.rules.inc, line 138 - Rules module integration for the smsframework.
Code
function sms_message_contains_keyword($sms, $keyword) {
return strpos($sms['message'], trim($keyword)) !== FALSE ? TRUE : FALSE;
}