function commerce_invoice_pdf_rules_event_info in Commerce Invoice 7.2
Implements hook_rules_event_info().
File
- modules/
pdf/ commerce_invoice_pdf.rules.inc, line 12 - Rules integration for the Commerce Invoice PDF module.
Code
function commerce_invoice_pdf_rules_event_info() {
$events = array();
$events['commerce_invoice_pdf_created'] = array(
'label' => t('After creating an invoice PDF'),
'group' => t('Commerce Invoice'),
'variables' => array(
'commerce_invoice' => array(
'type' => 'commerce_invoice',
'label' => t('The invoice entity'),
),
'file' => array(
'type' => 'file',
'label' => t('The file entity of the newly created invoice PDF'),
),
),
);
return $events;
}