Display explanation or submission guidelines help on form
Vote_Sizing_Steve - October 16, 2008 - 23:07
| Project: | Form Block |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | mikey_p |
| Status: | active |
Jump to:
Description
I've got some fairly useful instructions for users in my:
admin/content/node-type/student-survey >> Submission form settings >> Explanation or submission guidelines
... field ("This text will be displayed at the top of the submission form for this content type. It is useful for helping or instructing your users").
This field's contents appears on my form page (http://VoteSizing.org/node/add/student-survey), but not in the block that I created with Form Block (http://VoteSizing.org/book/What-to-Do-Vote-Sizing-Divisions/Vote-Sized-L...).
Is this a bug, normal behavior, or is there something wrong with my settings?

#1
Sorry - typo - should be "appears", not arrears.
#2
This could be done through code similar to what's in node_help().
In this case it would be something like this in formblock_get_block():
<?php$type_info = node_get_types('type', $type);
$output = (!empty($type_info->help) ? '<p>'. filter_xss_admin($type_info->help) .'</p>' : '');
?>
I'd welcome a patch.
[edited the code block]
#3
This can easily be done by printing the $help variable in the page.tpl.php
The thing i need is filling the $help variable for a specific form in a module (no hook_help isn't it)
#4
In Drupal 5, I was able to create a custom block.tpl.php file, based on the the block id and add in my copy above the block's $content variable.
I would think it would work in Drupal 6 as well.
#5
I'll try to add this as an option in the next few days.
#6
Has there been any progress on this issue? I'm looking for a way for the node form to show the help text when in a block.
Thanks!