hook-implementation

Search hook isn't working correctly

I'm trying to use hook_search to extend the built in drupal search to explicitly link two content types. ex. items a and b are part of collection a. Currently if you search for the title of collection a you only get collection a. I'd like to extend the search so that you get items a & b as well because they are members of that collect...

Add subitem to second level

I have primary links created manually. The are links to node (content type 'page') like -About --About Us --About company I need to add subitems About/About company/company1 and About/About company/company2 from my module. Next lines create menu item in first level (in one level with -About) $items['about2'] = array( 'menu_name' ...

what's the point to have hook_mail_alter if I already have hook_mail ?

hi, what's the point to have hook_mail_alter if I already have hook_mail ? For example, I saw that hook_mail_alter is used to add a footer to my mail message. But I could use hook_mail to add it, instead of using 2 functions... what am I missing ? Maybe it is done to add the footer after some other function is invoked ? thanks ...