You are here

function recipe_get_current_url in Recipe 5

Constructs a url from the current url arguments list.

Return value

a string containing a formated URL.

1 call to recipe_get_current_url()
recipe_index in ./recipe.module
Constructs the recipe index page, using theme functions.

File

./recipe.module, line 1136
recipe.module - share recipes for drupal 5.x

Code

function recipe_get_current_url() {
  $arg_index = 1;
  $url = arg(0);
  while ($argument = arg($arg_index)) {
    $url .= '/' . urlencode($argument);
    $arg_index++;
  }
  return $url;
}