Abuse form intro text
ositoblanco - March 19, 2009 - 18:15
| Project: | abuse |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
The abuse form intro text seems not to be implemented yet. I Think adding the following code to the abuse_report_form function in abuse.module should do it:
<?php
$abuse_form_pre = variable_get('abuse_form_pre', '');
if (!empty($abuse_form_pre)) {
$form['object_oid'] = array(
'#value' => $abuse_form_pre,
);
}
?>
#1
Hi there,
Not sure if you still use this module, but I'm guessing you are thinking of:
<?php$abuse_form_pre = variable_get('abuse_form_pre', '');
if (!empty($abuse_form_pre)) {
$form['object_oid'] = array(
'#type' => 'item',
'#value' => $abuse_form_pre,
);
}
?>
?
Doesn't sound like a bad idea.
#2
yes, something like that (see http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....).