Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
frjo CreditAttribution: frjo commentedI would recommend that you add a new type of token that insert the content you want instead.
Comment #2
BWPanda CreditAttribution: BWPanda commentedI too wanted this, and was able to do it using the Views PHP module.