I'm writing a formatter (protection url, with referer check) for Link module. I should access delta var inside hook_field_formatter function. Is there a way to do it?

I need because i would create a url like this:
download/$node->nid/$item_delta, where $item_delta is the delta column in the db table.

This url make a redirect do the real $item['url'];

+ click counter
+ referer protection. If referer protection is enabled, and the referer is != from $base_url, redirect to the node (url($node->id, NULL, NULL, TRUE)).

Thanks for help!

Comments

psicomante’s picture

If i'll finish this patch, i'll post that.

psicomante’s picture

made a db_query.

referer protection done.

dqd’s picture

Status: Active » Closed (won't fix)

Issue date expired ...

For any feature request please take a look on the link module versions for Drupal 6 and Drupal 7 with much more features and better server and web standart support since Drupal 5 is not supported no more officially.

The stop for Drupal 5 support: Since we have to catch up to get ready for the final Drupal 7 release and have to deal with many feature requests for the Drupal 6 and Drupal 7 version of the link field module, we sadly have to annouce the stop of Drupal 5 support. The files will stay for any individual use or customization, but any support in the issue queue and in the forums has expired from now on.

Sorry and thanks for understanding.