hook_field is not being called.

Created on 4 July 2011, almost 14 years ago
Updated 16 August 2024, 8 months ago

I have written a custom module where i need to sanitize (replace) filed value of a node being displayed [replacing filed value only while displaying it, and not its original content].

To accomplish this, I thought to implement hook_field ($op = 'sanitize') in my custom module but unfortunately it is not being called by drupal system. I verified it by placing drupal_set_message() at very first line of code withing hook_field(), but no luck. Again when one of module in my project (link-6.x) has hook_field() has been implemented and gets call from drupal system with no issues.

Can any one explain me, either this is a bug or I am missing someting?

Thank you.

💬 Support request
Status

Active

Version

3.0

Component

General

Created by

🇮🇳India hanmant.sapkal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024