Hi all,
I'm new to Drupal and did some reading up of the concepts as well as best practices docs etc.
I have been asked to help out with a D6 site, that makes use of the webform module. The site has a fully configured webform that has properly been assigned to authenticated users etc. and that works well.
The generic display (in 'view' mode) of filled in webforms does half of what we want: the display of the answers etc. is fine, but before showing that, we want to show a colour-coded "score-matrix", of which the colour coding is dependent on the answers given in the form.
Now, of course it is dead easy to just create a page for that, allow it to use PHP, dig in the DB and do it all the old-school way.
But... having done the reading up on matters, I would like to do it the right way (if possible, that is) by doing everything in a module (without direct DB queries, etc.). O.k., so far, so good. Checking the list of hooks for this module, it would seem that the hook_webform_submission_render_alter hook is the one to use.
Doing so easily allowed me to grab the desired results and do what I need to do (i.e. create the matrix), but... only before anything is rendered (which makes sense of course), so now for the actual question: how to easily (and cleanly!) 'push' the generated matrix to the standard content part of the page?