I am working on a module which does something similar to nodereferences_url.
Which Drupal hook to implement to place a link in link into a node content area like is highlighted in the attached image?
I am working on a module which does something similar to nodereferences_url.
Which Drupal hook to implement to place a link in link into a node content area like is highlighted in the attached image?
Copyright © 2021 Jogjafile Inc.
It is hook_link(), which is described as:
An example of implementation of that hook is node_link(), that contains the following code:
That is the code that adds the "Read more" link in the teaser of a node, when the node content is more than the content already shown in the teaser.
To notice that the hook is called for nodes, and comments. As described in the documentation, the
$type
parameter can have the following values: