Hi,
I have the following code in my dev site, which produces a author contact form;

$block = module_invoke('authorcontact', 'block', 'view', '0');
print $block['content'];

However in my live site, nothing is shown.
The 'personal contact form' is enabled
contact module is enabled, so is authorcontact

authenticated users can access site wide contact forms,

and ideas on what I can do to troubleshoot this problem?

Thanks,

T

Comments

tolland76’s picture

hmmmm.... it looks like I have to create at least one block in the site and configure it so the 'authorcontact_block_display_types' variable is set in order to use module invoke like that, or set the var explicitly.

Tom

myristo’s picture

Issue summary: View changes

Hi;
having same problem

 $block = module_invoke('authorcontact', 'block', 'block_view', 'authorcontact-0');
 print $block['content'];

?>

tried many method but not showing up in my custom template tpl.
Any suggestion ?