Commit 072589b5 authored by Penny Leach's avatar Penny Leach
Browse files

fixed the multicolumn renderer to do contextual help

properly (copied from the main renderer)
parent fc7ad258
......@@ -156,8 +156,13 @@ class FormRendererMultiColumnTable {
// Contextual help
if (!empty($rawelement['help'])) {
$result .= ' <span class="help"><a href="#" title="'
. Pieform::hsc($rawelement['help']) . '">?</a></span>';
$function = $this->form->get_property('helpcallback');
if (function_exists($function)) {
$result .= $function($this->form, $rawelement);
}
else {
$result .= ' <span class="help"><a href="#" title="' . Pieform::hsc($rawelement['help']) . '">?</a></span>';
}
}
$result .= "</td>\n\t";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment