You are here

function commerce_email_rules_action_info in Commerce Email 7

Implements hook_rules_action_info().

File

./commerce_email.rules.inc, line 11
Defines rules for order email functionality.

Code

function commerce_email_rules_action_info() {
  $actions = array();
  $actions['commerce_email_order_email'] = array(
    'label' => t('Send order email (HTML)'),
    'parameter' => array(
      'commerce_order' => array(
        'type' => 'commerce_order',
        'label' => t('Order'),
      ),
    ),
    'group' => t('Commerce Email'),
    'callbacks' => array(
      'execute' => 'commerce_email_order_email_send',
    ),
  );
  $actions['commerce_email_account_email'] = array(
    'label' => t('Send account e-mail (HTML)'),
    'parameter' => array(
      'account' => array(
        'type' => 'user',
        'label' => t('Account'),
      ),
    ),
    'group' => t('Commerce Email'),
    'callbacks' => array(
      'execute' => 'commerce_email_account_email_send',
    ),
  );
  return $actions;
}