You are here

function invoice_set_template in Invoice 7

Same name and namespace in other branches
  1. 6 invoice_ajax.inc \invoice_set_template()

Set the chosen invoice when creating a node

1 string reference to 'invoice_set_template'
invoice_menu in ./invoice.module
Implements hook_menu()

File

./invoice_ajax.inc, line 15
Invoice module

Code

function invoice_set_template() {
  $template = check_plain($_GET['value']);
  $_SESSION['invoice_template'] = $template;
  $a_items['vat'] = _invoice_get_variable($template, 'vat');
  drupal_json_output($a_items);
  exit;
}