I want to update the content of a block with AHAH. The problem I run into is fetching the content of the block. I've tried using block_list() to get a list of the blocks but it ALWAYS returns nothing, no matter what region I specify. Is there any way around this? Is there a better way to fetch the content of a block? I've had to settle with calling the block hook myself, however that means I somehow have to render the content as Drupal would.

Comments

xcf33’s picture

Try to wrap your contents into a form, then you will be able to use AHAH, just be careful and always use a theme function for the form.