Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
b2b349aa
Commit
b2b349aa
authored
Feb 12, 2007
by
Penny Leach
Browse files
added help icon callback
parent
a833cd6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/pieforms/pieform/renderers/table.php
View file @
b2b349aa
...
...
@@ -83,7 +83,13 @@ function pieform_renderer_table(Pieform $form, $builtelement, $rawelement) {
// Contextual help
if
(
!
empty
(
$rawelement
[
'help'
]))
{
$result
.
=
' <span class="help"><a href="#" title="'
.
Pieform
::
hsc
(
$rawelement
[
'help'
])
.
'">?</a></span>'
;
$function
=
$form
->
get_property
(
'helpcallback'
);
if
(
function_exists
(
$function
))
{
$result
.
=
$function
(
$form
,
$rawelement
);
}
else
{
$result
.
=
' <span class="help"><a href="#" title="'
.
Pieform
::
hsc
(
$rawelement
[
'help'
])
.
'">?</a></span>'
;
}
}
$result
.
=
"</td>
\n\t
</tr>
\n
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment