How to replace field with logic hook in Sugar 7 ?

My problem is that in the Sugar 6 I replaced field (contacts, opportunity,cases) with logic hock:
$bean->io_number_c = 12345
I replaced to $bean->ionumber_c = "<a target=\"_blank\" href=\"".$path."\">".$bean->ionumber_c."</a>";
($path = "http:/some_different_site.php?hash=some_different_variable"
$path is always different variable, because this is hash from some other site)
but now this is do not work.
Does anyone know what do that?