function ctools_set_variable_token in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 ctools.module \ctools_set_variable_token()
Easily set a token from the page variables.
This function can be used like this: $token = ctools_set_variable_token('tabs');
$token will then be a simple replacement for the 'tabs' about of the variables available in the page template.
File
- ./
ctools.module, line 319 - CTools primary module file.
Code
function ctools_set_variable_token($token) {
$string = '<!-- ctools-page-' . $token . ' -->';
ctools_set_page_token($string, 'variable', $token);
return $string;
}