function commerce_email_form_variable_group_form_alter in Commerce Email 7.2
Implements hook_form_FORM_ID_alter()
File
- ./
commerce_email.module, line 60 - Defines additional menu item and order html email functonality.
Code
function commerce_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',
),
'#global_types' => FALSE,
)),
'#weight' => 99999,
);
}
}