Hi all,

it´s just me or the blocks of this module won´t work out of the box? Anyone could point me how to enable them?

Thanks in advance, Simon!

Comments

modestmoes’s picture

One way:
Put the following code in your theme folder in: search-results-google_cse_adv.tpl.php

$block = module_invoke('google_cse_adv', 'block', 'view', 1); //suggestions
print '

'.$block['content']."

";

$block = module_invoke('google_cse_adv', 'block', 'view', 0); //filters
print '

'.$block['content']."

";

rooby’s picture

There is actually a bug in hook_block() where one of the switch statements uses a semicolon instead of a colon after each case. Not sure if that is the cause of much problem though or not. Will make a patch at some point.

No matter what I do though the contents of the blocks is always empty so the blocks don't display.
I have no time for further investigation at this point though.

rooby’s picture

Title: Documentation: how to activate this modules blocks » Why are my blocks always empty (and therefore not displaying)

Cancel that last post.
Semicolons are valid, although not so much the convention.