Closed (won't fix)
Project:
Hierarchical Select
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2007 at 17:42 UTC
Updated:
23 Sep 2007 at 16:31 UTC
Can make that an option so that the lists Parents only show?
That if there is a category with Parents and Children it only shows the list of the parents and when deploying the results it shows that Father's nodes and of their Children.
Comments
Comment #1
wim leersCurrently, Hierarchical Select doesn't have a UI. I'd like to keep it that way (everything happens "automagically").
If you want to prevent any children from being displayed, then do a hook_form_alter() and remove all child terms from #options.
Comment #2
armand0 commentedHow is hook_form_alter() used? I look for the information of how to use it but I have gotten lost in many questions and few answers. I see that it is a function to modify the prints to screen. But I have not known as making it. If you are so kind of explaining to me as or to indicate me a link where to see an example.
Thank you.
Comment #3
wim leersThere's plenty of documentation on this topic. You can find example implementations in lots and lots of modules. So I'm not going to explain it here to you. If you need to, just get the Drupal Pro Development book, which will help you with this, amongst other things.