Replaces {$link} with an arbitrary value.
Alias: adtool_replace_linkcode
(Required parameters in bold)
tpl
Template used to display output
Any valid template
The function_adtool_replace_linkcode template
tpl="my_template"
subject
String possibly containing {$link}
Any string
None.
subject="my {$link}"
replace
The text {$link} should be replaced with
replace="my replacement
replaceinto
Variable to store replacement output
Any valid Smarty variable name
replaceinto="my_variable"da
data_only
Set variables but don't display the template
1
None. The template is displayed.
data_only=1
No output. Result of replacement stored in the variable set by the "replaceinto" variable.
Last updated 2 years ago
Was this helpful?