You are here

function _rate_get_query in Rate 6.2

Same name and namespace in other branches
  1. 7 rate.module \_rate_get_query()

Get a query string used for links to the same page.

Parameters

string $token:

Return value

string

1 call to _rate_get_query()
rate_generate_widget in ./rate.module
Generate a widget.

File

./rate.module, line 335
Rate module

Code

function _rate_get_query($token = NULL) {
  $args = $_GET;
  if (isset($args['q'])) {
    unset($args['q']);
  }
  if (isset($args['rate'])) {
    unset($args['rate']);
  }
  if ($token) {
    $args['rate'] = $token;
  }
  return http_build_query($args, NULL, '&');
}