when a user starts a new (node) group I don't want to show them the group type option and just default to "group type" . Can this field be hidden? Maybe using a "widget type" hidden?

thanks

Comments

naught101’s picture

naught101’s picture

Title: is it possible to hide the "group type" field » Hidden widget for "group_group" field
Status: Closed (duplicate) » Active

On second thoughts, it would make sense to be able to do this without resorting to _form_alter()s. Shouldn't be too hard to create a hidden widget. I'll have a look at this as soon as I get time.

What do the og maintainers think of using the extra widgets module for this functionality? (I'm not suggesting a dependency, just a module_exists() call).

amitaibu’s picture

Category: feature » support
Status: Active » Fixed

> What do the og maintainers think of using the extra widgets module for this functionality?

If it works for you, go ahead and use it. OG doesn't need to check for it, as it's a widget used bu te field system.

naught101’s picture

Hrm. I think that SHOULD be the solution, yeah, however #1312788: Fatal error: Unsupported operand types in field_extrawidgets.module on line 119 means this is currently broken. There is a patch that fixes that, but the default value can't be set with a hidden widget. Will look more into it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.