You are here

function commerce_invoice_email_form_variable_group_form_alter in Commerce Invoice 7

Implements hook_form_FORM_ID_alter()

File

modules/email/commerce_invoice_email.module, line 11
Commerce Invoice Email code

Code

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,
    );
  }
}