Download & Extend

Privacy Policy Link node should be a multilingual variable

Project:Cookie Control
Version:7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

For multilingual sites it should be possible to specify a different Privacy Policy node for each language. This can be done by implementing hook_variable_info in the module. Patch to follow below.

Comments

#1

Here is the patch. To make this work, first clear the cache. Then go to i18n variables (admin/config/regional/i18n/variable) and enable Privacy Policy Link in Other variables. Now when you go to the Cookie Control settings page you should see THERE ARE MULTILINGUAL VARIABLES IN THIS FORM at the top of the page. Select each language in turn and enter the appropriate node id for the Privacy Policy Link.

AttachmentSize
cookiecontrol-privacy-node-multilingual-variable-1891622-1.patch 1.08 KB

#2

Sorry, ignore that patch and use this one instead.

AttachmentSize
cookiecontrol-privacy-node-multilingual-variable-1891622-2.patch 707 bytes

#3

Status:active» fixed

Nice function Peacog. Never knew that was possible for multilingual support.
Committed, thanks.

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here