3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
13 * CiviCRM's Smarty gettext plugin
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
20 * Smarty block function providing support for
21 * CiviCRM's helptext mechanism
23 * @param array $params
24 * Template call's parameters.
26 * {ts} block contents from the template.
27 * @param CRM_Core_Smarty $smarty
31 * the string, translated by gettext
33 function smarty_block_htxt($params, $text, &$smarty) {
34 if ($params['id'] == $smarty->_tpl_vars
['id']) {
35 $smarty->assign('override_help_text', !empty($params['override']));