projects
/
civicrm-core.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge pull request #22483 from eileenmcnaughton/token1
[civicrm-core.git]
/
CRM
/
Core
/
Smarty
/
plugins
/
prefilter.resetExtScope.php
1
<
?php
2
3
/**
4
* Wrap every Smarty template in a {crmScope} tag that sets the
5
* variable "extensionKey" to blank.
6
* @param $tpl_source
7
* @param $smarty
8
* @return string
9
*/
10
function
smarty_prefilter_resetExtScope
(
$tpl_source
, &
$smarty
) {
11
return
'{crmScope extensionKey=""}'
12
.
$tpl_source
13
.
'{/crmScope}'
;
14
}