I need to create a custom token that can get a value from a nids-based mapping table. I need to know the hooks that I have to implement in order to create a custom token.
You will need to implement hook_token_info () and hook_tokens .
The best you can do is load the example module , there is a module called token_example with a well-commented code example on how to correctly implement markers.
token_example
Source: https://habr.com/ru/post/897958/More articles:Host client-side JavaScript templates in HTML or JavaScript? - javascriptUnicode string lengths vary - phpEffective data structure / transliteration-based word search algorithm - algorithmHow to create .help file for help for Mac? - macoslist all defined constants from file in php - arraysCan a list passed to a function be modofied by another thread in Java? - javaWhat are the risks of having secure = false in crossdomain.xml - securityIs it possible to animate every line of text using jquery? - jqueryIs monodid slower? - androidUsing a 32-bit or 64-bit dll library depending on the degree of processing - asp.netAll Articles