The mentioned function actually implements hook_ENTITY_TYPE_load() for the 'group' entity (OG module). As the group entity type ignores the naming conventions (should be og_group) and it is planed to remove it at all (#1342632: Deprecate OG group entity), I wouldn't rename the function in in commerce_credits itself and add a temporary workaround in the meanwhile to prevent errors like this:
Warning: strtr() expects parameter 1 to be string, array given in commerce_credits_group_load() (line 235 of commerce_credits/commerce_credits.module)
What would you say?

Comments

guillaumev’s picture

What kind of temporary workaround do you propose ?

mh86’s picture

something like:

// Return if og group load hook is accidentally invoked, see http://drupal.org/node/1354456.
if (is_array($group_name)) {
 return;
}
guillaumev’s picture

Thanks, it seems fine to me. I just committed it:
http://drupalcode.org/project/commerce_credits.git/commit/0817ef0

guillaumev’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

fp’s picture

Status: Closed (fixed) » Needs work

This fix should also be applied to commerce_credits_ui_group_delete().

dasjo’s picture

Issue summary: View changes
Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.