You are here

function _invoice_getvars_array_to_string in Invoice 7

Same name and namespace in other branches
  1. 6 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 629
Invoice module

Code

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