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.
The documentation about the function og_membership_save() (og.module file) says:
* @return
* Failure to write a record will return FALSE. Otherwise SAVED_NEW or
* SAVED_UPDATED is returned depending on the operation performed.
However OgMembership->save() (og.membership.inc file) does not return anything so we can't check if the membership had been created or not. AFAIK the default Entity->class returns something.
Comments