Closed (fixed)
Project:
Taxonomy Access Control Lite
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2008 at 22:34 UTC
Updated:
24 Oct 2008 at 02:46 UTC
Hi!
Great module!
How can I modify it so that a user has all of the categories selected by default? Right now it just selects the first one ('none'). I need this for a special functionality that we're trying to build.
Comments
Comment #1
Dave Cohen commentedPersonally, I would do this by defining a custom module for my site. In that module implement hook_form_alter() and write a little bit of code to find the right select and change it's default value.
Remember that this will give a user access to all terms at the time the form is submitted. If you then add more terms to your vocabulary, you'd have to update each user. Consider using role-based, rather than user-based permissions for this.
Comment #2
taqwa commentedThanks for your advice!