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.
I would like to hide organic groups 'join groups checkboxes' on the user registration pages for a specific role. I tried to unset the fields using hook_form_alter() but $form['og_register'] isn't in available in $form. I gave my custom module a higher weight than content_profile.