I have a Drupal 7 setup. I want to remove few Content types from the Content Type checklist that appears in Advanced Search form. I could see that advanced search form comes in 'advanced' field-set of 'search_form'.
I tried to implement the solution given here, but I am not able to find the advanced array in $form.
I would also like to add styling changes and prefix elements to default text-fields that comes within Advanced Search form
Please find the below code that displays content of $form ($form_id = search_form), as I can't find advanced array within it.
Array
(
[#action] => /demodrupal7/search/node
[#attributes] => Array
(
[class] => Array
(
[0] => search-form
)
)
[module] => Array
(
[#type] => value
[#value] => node
)
[basic] => Array
(
[#type] => container
[#attributes] => Array
(
[class] => Array
(
[0] => container-inline
)
)
[keys] => Array
(
[#type] => textfield
[#title] => Enter your keywords
[#default_value] =>
[#size] => 40
[#maxlength] => 255
)
[processed_keys] => Array
(
[#type] => value
[#value] =>
)
[submit] => Array
(
[#type] => submit
[#value] => Search
)
)
[#form_id] => search_form
[#type] => form
[#build_id] => form-wAV_M_UAj5lbJgb-6vcdpmtxls5NpioPam6uNtkzRnw
[form_build_id] => Array
(
[#type] => hidden
[#value] => form-wAV_M_UAj5lbJgb-6vcdpmtxls5NpioPam6uNtkzRnw
[#id] => form-wAV_M_UAj5lbJgb-6vcdpmtxls5NpioPam6uNtkzRnw
[#name] => form_build_id
[#parents] => Array
(
[0] => form_build_id
)
)
[#token] => search_form
[form_token] => Array
(
[#id] => edit-search-form-form-token
[#type] => token
[#default_value] => 374_q2sHn_uhIvUhwOdrriFMIM3UgfVoc7Jzsh_DHrE
[#parents] => Array
(
[0] => form_token
)
)
[form_id] => Array
(
[#type] => hidden
[#value] => search_form
[#id] => edit-search-form
[#parents] => Array
(
[0] => form_id
)
)
[#id] => search-form
[#method] => post
[#theme_wrappers] => Array
(
[0] => form
)
[#icon] =>
[#icon_position] => before
[#process] => Array
(
[0] => bootstrap_form_process
)
[#pre_render] => Array
(
[0] => bootstrap_pre_render
)
[#tree] =>
[#parents] => Array
(
)
[#validate] => Array
(
[0] => search_form_validate
)
[#submit] => Array
(
[0] => search_form_submit
)
[#theme] => Array
(
[0] => search_form
)
)
Can anyone help me with this. Thanks in advance.