Closed (outdated)
Project:
Flag
Version:
7.x-3.x-dev
Component:
Views integration
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2012 at 13:44 UTC
Updated:
18 Aug 2025 at 14:10 UTC
Jump to comment: Most recent
Comments
Comment #1
barrapontoI'm going through the same problem, I'll see if I can get anything done.
Comment #2
barrapontoSo, I managed to theme it from the field_handler. However I was using the AJAX link, and once it is clicked on, the result will be the default flag text. There's absolutely nothing views can do to change that text, at least with the current implementation of the AJAX response. Here is the code I used:
I don't know what can be done about the ajax response, maybe just send a views param, and let the theme function use some specificity like
theme('flag' . '__' . $viewname);, which would help the themer a lot. It could be used in the handler render() method as well, to save themers a lot of time.Comment #3
joachim commentedThe Views handler just calls $flag->theme(), so this issue is dependent on that taking more parameters. Which IIRC there is an issue for.
Comment #4
rodyk commentedFor me the right code is :
It works like this ;)
Comment #5
ivnishDrupal 7 is EOL. No more new features will be added.