/** * Unregister custom function * * @param string $function Name of template function * @return void */ function unregisterFunction($function) { $this->_smarty->unregister_function($function); }