Closed (fixed)
Project:
Click HeatMap
Version:
6.x-2.6
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2010 at 11:26 UTC
Updated:
16 Jun 2012 at 04:01 UTC
Hello,
This is a path to support Domain Access (http://drupal.org/project/domain) subdomains.
click_heatmap.module :
@@ -107,7 +107,12 @@
* @return Site name.
*/
function click_heatmap_site_name() {
- return substr(conf_path(), strrpos(conf_path(), '/') + 1);
+ if (module_exists('domain')) {
+ $domain = domain_get_domain();
+ return $domain['subdomain'];
+ } else {
+ return substr(conf_path(), strrpos(conf_path(), '/') + 1);
+ }
}
Comments
Comment #1
john franklin commentedThat causes the data to be stored correctly, but the reports show only one domain, regardless of the current domain. That is, http://example.org/admin/reports/click_heatmap and http://site-a.example.org/admin/reports/click_heatmap show the same background graphic, even if they're configured to be two different domains. More work needs to be done.
BTW, "patch (to be ported)" is used when a patch has been accepted, but needs to be ported for another version of the module, usually the d6 or d7 version. "Needs review" is for when a patch has been attached as a file. See this page for details.
Comment #2
john franklin commentedOn further investigation, it does work. The page to view heatmaps does not default to the current domain, which is confusing but another issue.
Thanks for the patch.