* @author Michal Mach * @copyright CiviCRM LLC (c) 2004-2013 * $Id$ */ /** * Smarty block function providing edit-only display support * * @param array $params template call's parameters * @param string $text {edit} block contents from the template * @param object $smarty the Smarty object * * @return string the string, translated by gettext */ function smarty_block_edit($params, $text, &$smarty) { $action = $smarty->_tpl_vars['action']; return ($action & 3) ? $text : NULL; }