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

Dave Cohen’s picture

Status: Active » Fixed

Personally, 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.

taqwa’s picture

Status: Fixed » Closed (fixed)

Thanks for your advice!