i'm trying to have a print or mail link within the colorbox frame. so i used the custom colorbox handler field (http://drupal.org/node/799216), chose the trigger field, wrapped the proper link class around the trigger and put some php in the popup configuration field within the handler field, which looks like this:

[title]
[field_fieldname_fid]
<?php
print mail_insert_link(); 
?>

the popup colorbox works fine with tokens, but the php is printed as text.
is it possible to insert php in the popup field, together with tokens?

Comments

frjo’s picture

Status: Active » Closed (won't fix)

I would recommend that you add a new type of token that insert the content you want instead.

BWPanda’s picture

I too wanted this, and was able to do it using the Views PHP module.