It would be usefull if the entity.group could be extended with options:
group_load_by_type >> which would load all groups matching a certain type or all if no type is specified
group_load_by_name >> which would load all groups matching a group machine name

Comments

thim’s picture

Another usefull extension:

group_load_by_user >> which would return group data based on the UID of a user

altough I'm not sure yet how you will link will users to groups

kristiaanvandeneynde’s picture

Status: Active » Fixed

I have added the following functions:

function group_load_by_property($property, $value) {}
function group_load_by_name($name) {}
function group_load_by_type($type) {}

group_load_by_user is best implemented after we've completely worked out the user model.
See Commit 66a80a9f

Status: Fixed » Closed (fixed)

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

  • Commit 349604a on 7.x-1.x, ctools_plugins, inheritance by kristiaanvandeneynde:
    Issue #1973256 by kristiaanvandeneynde: Allow group_load_by_type().
    
  • Commit 66a80a9 on 7.x-1.x, ctools_plugins, inheritance by kristiaanvandeneynde:
    Issue #1973256 by kristiaanvandeneynde: Follow-up, allow...