Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
naught101 CreditAttribution: naught101 commented#967640: Force group and hide group selection by #access=FALSE fails
Comment #2
naught101 CreditAttribution: naught101 commentedOn 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).
Comment #3
amitaibu> 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.
Comment #4
naught101 CreditAttribution: naught101 commentedHrm. 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.