i would like to have search block positioned at the footer, but there is no _block hook for this module.

using 4.5 + chameleon theme.

Comments

sbulua’s picture

here's some code you can add to search.module that will create a block.
make sure all users have permission to search content.

scott

the site won't let me post the code. if you post your email i'll send it to you asap.

degerrit’s picture

Just put it between <code></code> marks (other people may find your search block useful too!)

sbulua’s picture

i get this error when i try to post the code: Terminated request because of suspicious input data.

any ideas why?

scott

degerrit’s picture

I don't know the filter/parser handling this, but searching for "Terminated request because of suspicious input data" in the drupal search above shows a few hits, mostly to do with HTML code.

Does your code have <head>, <body> or <html> tags in it? There is probably something odd about the code you are pasting. Either that, or there is a bug in the Drupal code parsing the input.

sbulua’s picture

post your email if you want the code. sorry.

Gunny-1’s picture

hi,

here is my address,
gkkumar12 at hotmail.com

Gunny-1’s picture

A similar issue was posted here,
http://drupal.org/node/820#comment-7188

But hook_block wasnt implemented. scott has implemented it, but has form functions which are getting terminated when posted here.