[development] Generating page output for your pages

William Smith william.darren at gmail.com
Sun Sep 13 18:54:51 UTC 2009


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.

On Sat, Sep 12, 2009 at 7:34 PM, rajasekharan <websweetweb at gmail.com> wrote:

> Hi all,
>
> 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?
>
> Raj
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/development/attachments/20090913/dd1125e5/attachment.htm>


More information about the development mailing list