Hi,

The title says it at all: How can this form be made domain-sensitive?

I don't mind hacking away at it myself, if anyone has any pointers?

Nadeem

Comments

nadeemja’s picture

StatusFileSize
new14.37 KB

I hacked away and got something that works for me flawlessly. Try it out yourself. I'm no pro, so beware.

Patch attached.

nadeemja’s picture

Title: Make form at mysite.com/admin/build/follow domain-sensitive via the Domain Access Module » Patch: Attempt at making Follow adhere to Domain Access Module
duntuk’s picture

Need drupal 7 version here...

monotaga’s picture

nadeemja, thanks! This was useful for my site.

monotaga’s picture

The patch in #1 doesn't account for "Follow this site (RSS)". I've repatched.

monotaga’s picture

@nadeemja, was there a reason that you used "$_domain['subdomain']" to set FOLLOW_DOMAIN instead of, say, "$_domain['sitename']"? As it is, if a site's subdomain changes (as mine will do when we move from dev to production), I'll need to make changes to the MySQL table for this.

I'd recommend changing:

define('FOLLOW_DOMAIN', str_replace(".","_", $_domain[subdomain]));

to:

define('FOLLOW_DOMAIN', strtolower(str_replace(' ','-',check_plain($_domain['sitename']))));

Although, if the site name changes, then the same issue happens. It might just be better to use the site ID since that's not something that the user can change (and otherwise won't change).

guzmosz’s picture

Me too...
Need drupal 7 version

monotaga’s picture

Has anyone just tried using the Domain Table Prefix module for this functionality?

bcobin’s picture

Per the developer, it should be relatively straightforward to use hook_domain_batch() - this is in domain.api.php which is included in the Domain project download.

See http://drupal.org/node/1556470

This is for D7, BTW...

astonvictor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I'm closing it because the issue was created a long time ago without any further steps.

if you still need it then raise a new one.
thanks