You are here

function uc_recurring_rules_action_info in UC Recurring Payments and Subscriptions 7.2

Implements hook_rules_action_info(). Send an email to an order with a role expiration.

File

./uc_recurring.rules.inc, line 25
Rules definitions.

Code

function uc_recurring_rules_action_info() {
  return array(
    'uc_recurring_renewal_email' => array(
      'label' => t('Send an order email regarding order renewal.'),
      'group' => t('Recurring Fee'),
      'parameter' => array(
        'order' => array(
          'type' => 'uc_order',
          'label' => t('Order'),
        ),
        'recurring_fee' => array(
          'type' => 'uc_recurring_fee',
          'label' => t('Recurring Fee'),
          'restriction' => 'selector',
        ),
        'from' => array(
          'type' => 'text',
          'label' => t('Sender'),
        ),
        'addresses' => array(
          'type' => 'text',
          'label' => t('Recipients'),
        ),
        'subject' => array(
          'type' => 'text',
          'label' => t('Subject'),
        ),
        'message' => array(
          'type' => 'text',
          'label' => t('Message'),
        ),
        'format' => array(
          'type' => 'text',
          'label' => t('Message format'),
          'options list' => 'uc_recurring_message_formats',
        ),
      ),
    ),
  );
}