You are here

function _rate_get_query in Rate 7

Same name and namespace in other branches
  1. 6.2 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 394
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 $args;
}