What Are Hooks?
Вставка
- Опубліковано 19 вер 2024
- Read the written version of this tutorial here:
drupalize.me/t...
Hooks allow modules to alter and extend the behavior of Drupal core, or another module. They are one of the various ways that code components in Drupal can communicate with one another. Using hooks a module developer can change how core or another module works -- without changing the existing code. As a Drupal developer, understanding how to implement and invoke hooks is essential.
In this tutorial we'll:
- Define what hooks are and the types of hooks that exist
- Understand the use-case for hooks
- By the end of this tutorial you should understand what hooks are and how they are used in Drupal, as well as be able to find more information about implementing and invoking hooks from your custom code.
Discover hundreds more Drupal tutorials at: drupalize.me/t...
"This video is a little long"
Nope. Just perfect
Great video
I am willing to bet that hooks will become just another way to couple modules horizontally in a more obscure way.
Sorta like inheritance nightmare was on the vertical.
Hello, this question has nothing to do with video. when I turn on ‘count content views’ in the statistics module, it appears in the ‘links' field. I have a 'views' field and I want to use count content views in that field, how can I do that?
Hi Sam - take a look at the rewrite field options. You can use that, combined with tokens from other fields to get the kind of thing it sounds like you are after.
thx i managed to understand even though i got adhd and the guy next to me stinks a fuykcing lot
Wait i think im the first who comment in this video
Speech is very fast