You are here

function example_drupal_goto_params in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_upgrade/tests/old/samples/example.module \example_drupal_goto_params()

File

coder_upgrade/tests/old/samples/example.module, line 2900

Code

function example_drupal_goto_params() {
  drupal_goto('/node/1');
  drupal_goto('/node/1', 'a=b&c=d');
  drupal_goto('/node/1', 'a=b&c=d', $fragment);
  drupal_goto('/node/1', $query, $fragment);
  drupal_goto('/node/1', 'a=b&c=d', $fragment, 301);
  drupal_goto('/node/1', NULL, $fragment);
  drupal_goto('/node/1', NULL, NULL, 301);
  drupal_goto('/node/1', '');
  drupal_goto('/node/1', "");
  $query = 'a=b&c=d';
  drupal_goto($path);
  drupal_goto($path, $query);
  drupal_goto($path, $query, $fragment);
  drupal_goto($path, $query, $fragment);
  drupal_goto($path, $query, $fragment, 301);
  drupal_goto($path, NULL, $fragment);
  drupal_goto($path, NULL, NULL, 301);
  drupal_goto($path, QUERY, FRAGMENT);
}