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

inferno_msk’s picture

output the custom flag

joachim’s picture

> 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().

kaizerking’s picture

doesn't want him to even see any text or link after flagging

joachim’s picture

Then what you want is currently beyond what Flag module can do. That other issue may help you, and if not, you need custom code.

kaizerking’s picture

can something like a flag_hide_show.tpl.php done?
like http://drupal.org/node/1204554#comment-6463690
don't know but just wondering

joachim’s picture

Status: Active » Closed (duplicate)