need help in search_form_alter
24 Jun
2009
24 Jun
'09
5:52 a.m.
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; } }
6179
Age (days ago)
6179
Last active (days ago)
0 comments
1 participants
participants (1)
-
bharani kumar