Closed (duplicate)
Project:
Flag
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2012 at 11:26 UTC
Updated:
8 Jan 2013 at 09:45 UTC
I want to hide the link 'unflag' i .e not disable
use case:
case 1
I want a user to flag an item but doesn't want him to unflag
case2:
I want user to unflag but doesn't want him to flag
We already have the function to discretely flag and unflag through rules. But, we have to do both i.e
we have to either display link or not is the only choice we have, we cannot set the display on any one of them.
There should be visibility control to make any of them either flag or unflag visible/invisible on in select option.
This is the functionality most of the users looking for.
Kindly could you please consider
Comments
Comment #1
inferno_msk commentedoutput the custom flag
Comment #2
joachim commented> I want user to unflag but doesn't want him to flag
That's not doable with flag's access system.
> I want a user to flag an item but doesn't want him to unflag
Flag outputs the 'unflag denied' text in this case. You'd need to customize this. That might be covered by #405580: Add $variables parameter to flag_create_link().
Comment #3
kaizerking commenteddoesn't want him to even see any text or link after flagging
Comment #4
joachim commentedThen what you want is currently beyond what Flag module can do. That other issue may help you, and if not, you need custom code.
Comment #5
kaizerking commentedcan something like a flag_hide_show.tpl.php done?
like http://drupal.org/node/1204554#comment-6463690
don't know but just wondering
Comment #6
joachim commentedSee #1788594: Split display link options into 'flag' and 'unflag', which would cover this.