You are here

function uc_file_rules_event_info in Ubercart 8.4

Same name and namespace in other branches
  1. 7.3 uc_file/uc_file.rules.inc \uc_file_rules_event_info()

Implements hook_rules_event_info().

File

uc_file/uc_file.rules.inc, line 203
Rules hooks and functions for uc_file.module.

Code

function uc_file_rules_event_info() {
  $events['uc_file_notify_grant'] = [
    'label' => t('E-mail for granted files'),
    'group' => t('Notification'),
    'variables' => [
      'order' => [
        'type' => 'uc_order',
        'label' => t('Order'),
      ],
      'expiration' => [
        'type' => 'uc_file_expiration',
        'label' => t('File expiration'),
      ],
    ],
  ];
  return $events;
}