You are here

function sms_rules_event_info in SMS Framework 7

Same name and namespace in other branches
  1. 6.2 sms.rules.inc \sms_rules_event_info()

Implements hook_rules_event_info().

File

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

Code

function sms_rules_event_info() {
  return array(
    'sms_incoming' => array(
      'label' => t('A SMS message is received'),
      'access callback' => 'sms_rules_access_callback',
      'module' => 'sms',
      'group' => t('SMS'),
      'variables' => array(
        'sms' => array(
          'label' => t('SMS Message'),
          'description' => t('The SMS message and metadata.'),
          'type' => 'sms',
        ),
      ),
    ),
  );
}