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