Active
Project:
Google Custom Search Engine Advanced
Version:
6.x-1.2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2010 at 09:07 UTC
Updated:
13 Oct 2011 at 23:39 UTC
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
Comment #1
modestmoes commentedOne 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 = module_invoke('google_cse_adv', 'block', 'view', 0); //filters
print '
";
Comment #2
rooby commentedThere 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.
Comment #3
rooby commentedCancel that last post.
Semicolons are valid, although not so much the convention.