I'm using Domain Access to manage several domains, and I wanted to use the twitter module.
The twitter setup global account should set a different twitter account for each domain, but I can't see how to setup, each time I change from any domain, changes are rolled out for all domains.
I tried to use the Domain_prefix (copy, create) to see if I could split the info, but same results.
Are both modules compatible?
Anyone using both modules with differents twitter account ?
Thanks,
Pedro.
Comments
Comment #1
agentrickardAssuming all the Twitter data is stored as variables, then use hook_domainconf() or hook_domainbatch(), as documented in API.php. If Twitter module stores its info in a database table, table prefixing should work.
If, however, it does _both_, then you need a custom bridge module.
Comment #2
pedrospI created yesterday the file domain_conf.inc to solve the Google Analytics workaround with Domain access, and it works fine.
I tried then to do "the same" (i'm a newbie) for twitter module, below the code used, but I can't see any twitter module related fields to setup on the domain settings. (I can still see the GAnalytics one).
Any help much appreciated.
Pedro
Comment #3
agentrickardThe name of the hook has to match the name of the module. Assuming you're using http://drupal.org/project/twitter, you must name the hook:
twitter_domainconf()You can also submit that function as a patch to Twitter module. The domain_conf.inc trick is there as a stopgap if people don't commit your hook patch.
Comment #4
agentrickardYou should also change the form fieldset name to avoid namespace problems:
Comment #5
pedrospThanks agentrickard
It works fine, just for the record I copy the final code with some minor changes. Posted also on #611698: Twitter module compatible with domain access ?
Comment #7
Exploratus commentedMy guess is this is already insidde the twitter module??? I downloaded Twitter Module, and Domain Access works right out of the box.... Or am I missing something?
Cheers.