Closed (fixed)
Project:
Domain Context
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2011 at 09:20 UTC
Updated:
29 Apr 2011 at 09:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
tebb commentedFrom the Domain (Domain Access) module readme file:
7.2 The $_domain Global
NOTE: In Drupal 7, this value is deprecated. You should use domain_get_domain()
to return the active domain.
Comment #2
xjmI don't have any immediate plans to create a new branch because I do not have any D7 sites at this time, but it should be fairly straightforward to port. If someone else comes up with a working port, I'll certainly open a new branch for it.
Comment #3
Stephen Rockwell commentedsubscribing
Comment #4
cr0ss commentedI'll be very glad to help porting this module to D7.
Comment #5
xjmGo for it! Really it should only be a matter of:
Feel free to do as much of this as you want. Then, go ahead and post the code in this issue (either an archive or a patch against 6.x-1.x-dev is fine).
Thanks!
Comment #6
drclaw commentedHere's a first attempt.
I fixed the info file and checked the context api for changes (of which it looked like there was none...)
Tested and it's working so far...
Is it possible it's this easy?
Comment #7
tebb commentedThat's odd.
If #1 is still true, this should *not* be working, because the patch still references the deprecated global.
Comment #8
drclaw commentedIt seems that the domain module still retains the $_domain global variable.
I suppose it's more in the process of deprecation. =P
Here's a new patch that uses the new function.
Comment #9
mortendk commented+1
Comment #10
xjmLooks good to me! Edit: the D7 branch is open in git; I'll add the 7.x-1.x-dev build to the project page once the packaging script runs.
Comment #11
xjmhttp://drupalcode.org/project/domaincontext.git/commit/a570f37
Comment #12
drclaw commentedGood Stuff!
Comment #13
tebb commentedMany thanks DrClaw and XJM.