Closed (fixed)
Project:
Domain Country Path
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Jun 2017 at 12:33 UTC
Updated:
21 Dec 2017 at 13:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tibezh commentedPatch attached.
Comment #3
itsekhmistro commentedCould you provide one or two example use cases when it can help?
Comment #4
tibezh commentedHi @itsekhmistro, thnx for your question.
This is hook helped me for setup site on Acquia between environment (dev, stage).
For example, we have a www.sitename.com domain, and for stage environment need open site with a www.sitename-stage.com domain address.
Via hook_country_path_domain_bootstrap_lookup we can override base domain, and we can setup functionality for open www.sitename.com domain when we have a www.sitename-stage.com domain.
Comment #5
itsekhmistro commentedThe reasoning sounds good to me.
Comment #7
itsekhmistro commentedThe proposed patch is applied to the DEV (7.x-1.x) branch.
And will be included in the next release.
@tibezh Thank you for your work!
Comment #8
itsekhmistro commented@tibezh Could you also add the hook definition into country_path.api.inc ?
Comment #9
tibezh commentedSorry for delay.
Documentation for a new hook is ready, patch attached.
Comment #10
tibezh commentedComment #12
kashandarash commentedPatch is applied to the DEV branch.
@tibezh Thank you!
Comment #13
tibezh commented@kashandarash, You forgot set commit author of the patch. Please, read this article https://www.drupal.org/node/1146430 and rework a commit.
Tell me if you need a help with this.
Comment #15
kashandarash commented@tibezh, sorry for that, added new commit with right author