allow to call a function instead of a static helptext

This commit is contained in:
Ralf Becker 2011-08-27 18:35:40 +00:00
parent 725f59cfda
commit fa435de6a9

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);
}