* {url module="API"} will rewrite the URL modifying the module GET parameter * {url module="API" method="getKeywords"} will rewrite the URL modifying the parameters module=API method=getKeywords * * * @see Piwik_Url::getCurrentQueryStringWithParametersModified() * @param $name=$value of the parameters to modify in the generated URL * @return string Something like index.php?module=X&action=Y */ function smarty_function_url($params, &$smarty) { return htmlspecialchars('index.php' . Piwik_Url::getCurrentQueryStringWithParametersModified( $params )); }