
<p>Some intro text and the required fields:</p> <p> Field 1: [+required_field_1+]<br /> Field 2: [+required_field_2+] (etcetera) </p> <p> All other report fields to be placed in this placeholder:</p> <p>[+report_fields+]</p>
<?php
function my_own_report_function(&$fields){
/* NOTE! This is not real working code!
It's just to give you a hint of how you can approach this. */
foreach($fields as $fld => $value){
if(!empty($value) && field_is_not_required($fld)){
$report_value .="<p>{$fld}: {$value}</p>";
}
}
//place the result back into the $fields array
$fields['report_fields'] = $results;
//return succes.
return true; //important
}
?>