allow to call a function instead of a static helptext

This commit is contained in:
Ralf Becker 2011-08-27 18:36:16 +00:00
parent cdee7ad7f4
commit 8d4bd41736

View File

@ -1177,7 +1177,11 @@ class etemplate extends boetemplate
{
$help = lang($help);
}
if (($use_tooltip_for_help = strpos($help,'<') !== false && strip_tags($help) != $help)) // helptext is html => use a tooltip
if (substr($help,0,5) == 'call:')
{
$options .= ' onMouseOver="'.html::htmlspecialchars(substr($help,5)).'"';
}
elseif (($use_tooltip_for_help = strpos($help,'<') !== false && strip_tags($help) != $help)) // helptext is html => use a tooltip
{
$options .= html::tooltip($help);
}