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