function invoice_set_template in Invoice 6
Same name and namespace in other branches
- 7 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 - Implementation of 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($a_items);
exit;
}