I can create a flag link like this:

$flag_link = flag_create_link('my_flag', $nid);

The link is created according to the link type (ajax, normal link, confirmation form). Awesome!

How can I create a link for a flag in a type not set as its default?

Thanks,

-Steve

Comments

quicksketch’s picture

You can't yet, but it is a feature request here: #405580: Add $variables parameter to flag_create_link().

joachim’s picture

Category: support » feature
Status: Active » Closed (duplicate)