You are here

function sms_rules_condition_info in SMS Framework 7

Implements hook_rules_condition_info()

File

./sms.rules.inc, line 112
Rules module integration for the smsframework.

Code

function sms_rules_condition_info() {
  return array(
    'sms_message_contains_keyword' => array(
      'label' => t('An incoming SMS message contains keyword'),
      'arguments' => array(
        'sms:select' => array(
          'label' => t('SMS Message'),
          'description' => t('The SMS message and metadata.'),
          'type' => 'sms',
        ),
        'keyword' => array(
          'label' => t('Keyword'),
          'description' => t("The keyword to look for."),
          'type' => 'text',
        ),
      ),
      'access callback' => 'sms_rules_access_callback',
      'module' => 'sms',
      'group' => t('SMS'),
    ),
  );
}