HTML for link to the legal page is not overridable (at least not in a way I could find).
Attached a simple patch (my first) to move the html link in to a theme function.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | legal-themeable_accept_label-1344760-1.patch | 1.77 KB | rooby |
| html_for_legal_link_moved_to_theme_function.patch | 1.05 KB | pau1_m |
Comments
Comment #1
rooby commentedGood first patch, just one note:
Should be:
+ 'legal_accept_label' => array('variables' => array()),
If you look at http://api.drupal.org/api/drupal/modules--system--system.api.php/functio... the first paragraph in the 'Return value' section outlines the usage of 'render element' and 'variables', but basically render element is for elements like form elements and forms etc. and variables is for your ordinary theme functions.
Another thing is to make sure to set the issue 'Status' to 'needs review', otherwise it is less likely to get people looking at it.
Comment #2
rooby commentedHere is a slightly different version of the patch that allows also for when using the page link option and the accept label has a link in it.
This is useful for modifying the link in that case so it can open in colorbox or other similar things.
Comment #3
rooby commentedSorry, I had my wires crossed a little in my last post.
The difference is it also allows for themeing of the accept label in the case that it doesn't contain the link.
Comment #4
hendroutomo commentedhi rooby, i've applied your patch,...and then what? any hint or snippet ? i need to make the legal link to view on colorbox.
Comment #5
rooby commentedI don't remember off the top of my head what I did for that.
From the colorbox readme:
So something like this in your template.php file in your theme (note that this is untested just me typing into the comment field so there could be typos):
The differences are the query and the class on the link.
Then make sure to enable the "Enable Colorbox load" option in Colorbox settings.
Comment #6
muschpusch commentedThe patch is simple and works! Reviewed and +1 for commiting this
Comment #7
hendroutomo commentedthanks rooby, i got it working somehow
Comment #8
robert castelo commentedThanks rooby, and pau1_m, added to dev and will be in the next release.