If I understand what you are asking correctly, the best practice in your module functions would be to call theme('x_y') where 'x' is your module name and 'y' is something descriptive (likely the same name as your function which is invoking it). Then implement a theme_x_y() function which generates the output in a variable like $output and then returns $output.<br>
<br><div class="gmail_quote">On Sat, Sep 12, 2009 at 7:34 PM, rajasekharan <span dir="ltr"><<a href="mailto:websweetweb@gmail.com">websweetweb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
How do you generally accumulate the output for the various pages in your module functions that have to return some HTML? I have been directly printing all my desired output and using the php output buffer functions to get the page's output. I haven't seen many other authors do this. May be I am doing something wrong, what is the generally followed method for this?<br>
<br>
Raj<br>
</blockquote></div><br>