commerce_invoice_email.module in Commerce Invoice 7
Commerce Invoice Email code
File
modules/email/commerce_invoice_email.moduleView source
<?php
/**
* @file Commerce Invoice Email code
*/
/**
* Implements hook_form_FORM_ID_alter()
*/
function commerce_invoice_email_form_variable_group_form_alter(&$form, &$form_state) {
if ($form_state['build_info']['args'][0] == 'commerce_email') {
$form['tokens'] = array(
'#markup' => theme('token_tree', array(
'token_types' => array(
'commerce-order',
'commerce-customer-profile',
'commerce-invoice',
),
'#global_types' => FALSE,
)),
'#weight' => 99999,
);
}
}
Functions
Name | Description |
---|---|
commerce_invoice_email_form_variable_group_form_alter | Implements hook_form_FORM_ID_alter() |