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.
Currently the module make a unset($form[$key]);
to disable the tabs, losing some information during the node submission. I noticed an incompatibility of this module with the organic groups module.
Is better use $form[$key]['#access'] = FALSE;
instead of unset($form[$key]);
.
Comment | File | Size | Author |
---|---|---|---|
#1 | better-approach-to-hide-the-vertical-tabs-2287689-D7.patch | 701 bytes | jribeiro |
Comments
Comment #1
jribeiro CreditAttribution: jribeiro commentedComment #2
skwashd CreditAttribution: skwashd commentedComment #3
natanmoraesTested locally and it looks good.
Comment #4
skwashd CreditAttribution: skwashd at Dave Hall Consulting commentedThanks for the patch. This is a better approach. I've applied it.
Comment #6
rafaolf CreditAttribution: rafaolf at CI&T commented