I am developing a module that allow users to insert custom tags in node body. At view time I want to replace those tags with some text. I made a module that implement hook_nodeapi and hook_view. For nodeapi hook it is working, but hook_view is never called. Do you have any ideea why hook_view is not called? Do you know a better approach for my problem?

Thanks,
Radu

Comments

peter-boeren’s picture

Hook_view is only called by module that implement a node type. For example the blog module. In blog_node_info the module tells Drupal that it will provide a content type. In the same module you will find a function blog_view. More information about hook_view is at the api. Other modules should implement hook_node_api as you did.