You are here

function uc_file_ca_trigger in Ubercart 6.2

Implements hook_ca_trigger().

File

uc_file/uc_file.ca.inc, line 139
This file contains the Conditional Actions hooks and functions necessary to make the file-related entity, conditions, events, and actions work.

Code

function uc_file_ca_trigger() {
  $args = array(
    'order' => array(
      '#entity' => 'uc_order',
      '#title' => t('Order'),
    ),
    'expiration' => array(
      '#entity' => 'uc_file_expiration',
      '#title' => t('File expiration'),
    ),
  );
  $triggers['uc_file_notify_grant'] = array(
    '#title' => t('E-mail for granted files'),
    '#category' => t('Notification'),
    '#arguments' => $args,
  );
  return $triggers;
}