I'm still having a terrible time implementing an advaced search. I've created an advanced search form and I can add these values to the query_string. But I can't seem to get my do_search function to work in hook_search. It's really frustrating....
How can I pass the value from the basic form to do_search and still have an advanced search? Here's my hook_search function
<?php>
function image_search($op = 'search', $keys = null) {
# print 3 1's
#$dump = print_r($keys);
#error_log($dump,0);
switch ($op) {
case 'name':
return t('image');
case 'reset':
variable_del('image_cron_last');
return;
case 'search':
$reader_name = search_query_extract($keys, 'reader_name');
$reader_home_town = search_query_extract($keys, 'reader_home_town');
$gallery_name = search_query_extract($keys, 'gallery_name');
$gallery_description = search_query_extract($keys, 'gallery_description');
$photo_description = search_query_extract($keys, 'photo_description');
$published_date = search_query_extract($keys, 'published_date');
#print "
$keys
";
$find = do_search($keys,'node');
// Load results
$results = array();
foreach ($find as $item)
{
$node = node_load($item->sid);
// Get node output (filtered and with module-specific fields).
if (node_hook($node, 'view')) {