I first searched in the issue queue for similar use case, but I could not. Please correct me if I am wrong.
What I want is, I want to display only few terms from a vocabulary with lots of terms. I tried with hook_form_alter, but that did not work.

Regards.

Comments

joshi.rohit100’s picture

On what criteria you want to do this ? I mean - drupal dont know whether you like x1 or y1. What you can do, you can create a view with limit, order by, condition (if there is any) to list terms.

beautifulmind’s picture

Hello Rohit,
If you do not understand the question, you do not have to respond.

Regards.

joshi.rohit100’s picture

If you do not understand the question, you do not have to respond.

Well you should be humble if someone is trying to answer you question and same goes for you -

If you don't know what your problem is and also don't know how to explain it, you don't need to post.

Regards

jdanthinne’s picture

Wow. Keep calm, guys…
I think I understand the problem well. Strange that hook_form_alter is not working. Which $form_id are you trying to alter?
Now that I think about it, Custom Search module has a module weight of 100, so be sure that the module you're using to alter it must be higher.

jdanthinne’s picture

I've just check, and the Custom Search Taxonomy submodule itself has a weight of 101… So yours should be at least 102.

beautifulmind’s picture

Rohit,
You are ridiculing yourself. I did not ask the question addressing you specifically. I know what my issue is and what I have asked.
Thanks for not replying further.

jdanthinne,
I am able to see everything with form alter but the fields on the form. Its (Read: Custom search block module) adding some post processing to the form and displays a div with terms name in ul li. The main select box stays hidden.

So, irrespective of the module weight, that's not going be caught with hook_form_alter.

I will keep you posted about the solution I find. So every one else can use the same in future.

Regards.

joshi.rohit100’s picture

You are ridiculing yourself. I did not ask the question addressing you specifically.

It seems like you don't need anybody's help because when you ask question in opensource forum, you don't address anyone. Instead if someone tries to help you, you should appriciate.

I know what my issue is and what I have asked

Seems like you have mis-conception (If you check IS and your last comment).

Anyway... unsubscribed.

Thanks

beautifulmind’s picture

Glad to learn that.