function _invoice_get_chosen_template in Invoice 7
Same name and namespace in other branches
- 6 invoice_helpers.inc \_invoice_get_chosen_template()
Helper function to easily get the name of the chosen template when adding an invoice
5 calls to _invoice_get_chosen_template()
- invoice_delete_item in ./
invoice_ajax.inc - Delete an invoice item
- invoice_form in ./
invoice_form.inc - Implements hook_form()
- invoice_node_presave in ./
invoice.module - Implements hook_node_presave()
- invoice_save_item in ./
invoice_ajax.inc - Add an invoice item
- invoice_search_customer in ./
invoice_ajax.inc - Search if the customer already exists
File
- ./
invoice_helpers.inc, line 313 - 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'];
}