Drupal Association members fund grants that make connections all over the world.
I've tried to print a block using $block = module_invoke("block", "block_view", 6); , but this returns a simple array with ['subject'] and ['content'] as keys, what I want to get is a standard themed block, I mean its final markup, so if I print it inside content's region and I am admin, I get the "configure this block" button as I get when I position it inside a region using block's panel.
In Drupal 6 it was just by using theme('block',$block), but when I try the same I get many warning saying theme function expected many more keys, in addition it expects an object instead an array, I tried doing a cast (object)$block but still doesn't work.
Do you know any way I can solve this? I mean, how can I get a rendered (html) block programatically as regions do when printing page.tpl.php?
Thank you in advance =)