• Development

    Getting a Field from an Entity in Drupal 8

     

  • Uncategorized

    Creating Field Groups in a Custom Module

    If you need your module to add a fieldgroup to your Drupal 7 site, follow this quick and easy process: Also, if you’re looking to create fields, see this related post.

    1. Build the fieldgroup through the “manage fields” UI.
    2. Modify the code below to include a proper $fieldgroup_name, $entity_type and $bundle_name. I needed to add a field to the user profile, so I set the $entity_type to “user” and the $bundle_name to “user”.