Closed (fixed)
Project:
Domain
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2009 at 20:47 UTC
Updated:
14 Dec 2010 at 22:16 UTC
Jump to comment: Most recent file
Attached is a patch that removes explicit calls to Domain Source (good) by introducing hook_domain_source_alter() in the main module API.
It also opens up the ability to rewrite non-node paths using your own rules!
This patch may need to be expanded a bit, but I like where it is so far.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 615258-path-source.patch | 13.54 KB | agentrickard |
| #9 | 615258-path-source.patch | 13.44 KB | agentrickard |
| #8 | 615258-path-source.patch | 13.47 KB | agentrickard |
| #6 | 615258-path-source.patch | 10.89 KB | agentrickard |
| #5 | 615258-path-source.patch | 10.83 KB | agentrickard |
Comments
Comment #1
agentrickardHere's the patch, which should remove all explicit calls to Domain Source from the main module.
Comment #2
nonsieI like where this is going....
Comment #3
agentrickardWe've needed this for a long time. Now you can just call
domain_get_node_match($nid)and get back the $domain that the node will link to.We may need a similar function for
domain_get_path_match($path).Comment #4
bartezz commentedsubscribing
Will create a copy of my setup on a local machine and test the patch or are you still working on it....
Comment #5
agentrickardAnd here it is, with some documentation, too.
I don't think I will clean up the code in custom_settings_url.inc for now. This looks pretty good to go.
Comment #6
agentrickardAPI cleanup documentation cleanup.
Comment #7
bartezz commentedWill test tomorrow!
Cheers
Comment #8
agentrickardMuch more optimized patch, which splits the api hook in two.
I wrote the changelog, but did not commit.
Comment #9
agentrickardMinor API docs fix.
Comment #10
agentrickardEven better API docs. Committed to HEAD.
Comment #11
agentrickardWill not backport to D5.