registered_plugins['function'][$function_tag])) { throw new Exception("Plugin tag \"{$function_tag}\" already registered"); } elseif (!is_callable($function_impl)) { throw new Exception("Plugin \"{$function_tag}\" not callable"); } else { $smarty->registered_plugins['function'][$function_tag] = array($function_impl, $cacheable, $cache_attr); } } ?>