You are here

function _invoice_getvars_array_to_string in Invoice 6

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

Helper function to collect all $_GET variables and put them in a string

1 call to _invoice_getvars_array_to_string()
invoice_invoices in ./invoice.module
Overview of all invoices

File

./invoice_helpers.inc, line 518
Invoice module

Code

function _invoice_getvars_array_to_string($a_vars = array()) {
  unset($a_vars['q']);
  $s_vars = '?';
  foreach ($a_vars as $key => $value) {
    $s_vars .= $key . '=' . $value . '&';
  }
  return rtrim($s_vars, '&');
}