You are here

function sms_rules_action_info in SMS Framework 7

Implements hook_rules_action_info().

File

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

Code

function sms_rules_action_info() {
  return array(
    'sms_send' => array(
      'label' => t('Send sms'),
      'group' => t('SMS'),
      'parameter' => array(
        'to' => array(
          'type' => 'text',
          'label' => t('To'),
          'description' => t('The destination SMS number'),
        ),
        'message' => array(
          'type' => 'text',
          'label' => t('Message'),
          'description' => t("The sms message body."),
        ),
      ),
      'base' => 'sms_rules_action_sms_send',
      'access callback' => 'sms_rules_access_callback',
    ),
  );
}