Hi , I want to customize the default search module ,
So i want to add the drodown list box with search text box, here is the alter form ,
Then what is the next steps , for search the article by dropdown list ,
I want to add my drop down list value into select query where condition ,
How i do ,
here is the code
function search_form_alter(&$form, $form_state, $form_id) { switch ($form_id) { case 'search_theme_form':
$form['selectlist'] = array( '#type' => 'select', '#default_value' => variable_get('feed_item_length','teaser'), '#options' => array( 'user' => t('user'), 'location' => t('Location'), 'age' => t('age'), ), '#description' => t('Select type.'),); break; } }