For a recent project, we had to extend this module. We wanted to assign users to a personal website, but also connect them to a country website. Hence we extended the module so that you could create multiple categories of user <-> domain relationship

By default, there is one 'Personal website' category created, just like the current version of the module. When you add more categories, you can choose under which category a domain will be automatically created for a registering user, and also use the category to determine the domain a user will be directed to upon login.

The module also comes with Views relationship handlers so you can present listings of users, connected to domains via different categories. You can even connect the different categories of domains together through their mutual users (for example on a country site, you could show content created by users on their member websites).

I am attaching my work here. Note that the module is still only Domain Access 2.x compatible, and would therefore need a little work before a release. I would be happy to co-maintain this module.

Comments

agentrickard’s picture

This is for d7 then?

nirbhasa’s picture

it is :) but currently only supports the 7.x-2.x version of DA.

agentrickard’s picture

Ok. If I make a real branch, can you roll a proper patch?

nirbhasa’s picture

Yes, I would be happy to.

agentrickard’s picture

Great. Let me see what I can do.

agentrickard’s picture

nirbhasa’s picture

StatusFileSize
new39.2 KB

Patch applied, with some cruft cleanups. I realised on making the patch that domain creation on register hasn't been fully tested yet - I wasnt using that aspect for my project.

quardz’s picture

Category: feature » bug

There is no "access" table anymore in Drupal 7. It throwing error

$check = db_query("SELECT aid FROM {access} WHERE mask = :mask", array(':mask' => $name_string))->fetchField();
agentrickard’s picture

Category: bug » feature
Status: Needs review » Needs work

This module is seeking a new maintainer.

This is still a feature request. If the patch is buggy, it needs work.