Any way to merge Groups?

Is there any way (contrib module?) to provides site admins the functionality of automated group merges?  So far I've not been able to find anything.  I'm picturing something that lets you identify two groups to be merged, and it would move all content and membership to the survivor group and delete the (now empty) non-survivor group.

 

Comments

BarisArt

You wouldn't believe this

But that is part of Organic Groups by default. I've been looking for it as well!

Just delete a group and you get the option to move all content and users to another group ;)

mike.stefanello

I've written a module that

I've written a module that does a much better job handling merges - both from an end-user and developer standpoint.

It's very close to being completed and should sneak its way into Commons soon.

But as the last comment pointed out, that is correct. You can merge upon deleting a group - but it requires the administer nodes permission.

Jehf

That's great

In what ways is it "much better," Mike?

And will it be submitted as a new general-use contrib module to d.o or will it only be useful in context of Commons?

mike.stefanello

Here's my current

Here's my current list:

  • Process the merging operations via a batch operation to avoid a timeout
  • Allow user's that do not have the 'administer nodes' permission to perform merges
    • Regular users can only merge groups which they are an admin of
  • Provide a hook (hook_og_merge()) to allow other modules to act on the merge
  • Allow the perserving of group admin status for users coming from other groups
  • Provide a simple form that stands out as a merge feature
    • OG's merge is only present when attempting to delete a group
  • Avoid merged content being flagged as 'updated'

It will act as a separate module that will be contributed to drupal.org (intended for general use).

Jehf

Sounds like a great module

...especially exposing it via a form so that idiots like me know it's even possible.  ;-)

Is a D7 version on your radar at all?

mike.stefanello

Well, we'll get the 6.x

Well, we'll get the 6.x version done first. It's very simple so I'm sure a D7 port wouldn't take long at all.

I'll have to take a closer look at OG for D7 to see what they've already did in this area.

jay

In fact..

.. a complete subgroups capability will be in the next (feature-full) release of Commons. We've got it running internally, but there's still a couple of rough edges.

Note that we're not using og_subgroups. Mike came up with a brilliant alternative. We also want to go over that with the current maintainer(s) of OG before we cast it in stone, and try to avoid having a non-release OG in Commons.

My current plan is to have this out in Beta within 30 days, with GA by the end of the quarter. Modulo other influences...

Jehf

I'm very interested in this

Subgoups are one possible way of solving some of my problems, and I'm dying to hear the details of Mike's brilliant alternative!

I'm not seeing how this applies to my question about  merging groups, but I presume it's related or you wouldn't have mentioned it here?

Definitely intrigued...!