You are here

function _invoice_get_chosen_template in Invoice 6

Same name and namespace in other branches
  1. 7 invoice_helpers.inc \_invoice_get_chosen_template()

Helper function to easily get the name of the chosen template when adding an invoice

3 calls to _invoice_get_chosen_template()
invoice_delete_item in ./invoice_ajax.inc
Delete an invoice item
invoice_form in ./invoice_form.inc
Implementatin of node_form()
invoice_save_item in ./invoice_ajax.inc
Add an invoice item

File

./invoice_helpers.inc, line 257
Invoice module

Code

function _invoice_get_chosen_template() {
  return !isset($_SESSION['invoice_template']) || empty($_SESSION['invoice_template']) ? variable_get('invoice_default_template', 'default') : $_SESSION['invoice_template'];
}