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...

КОМЕНТАРІ • 8

  • @UrbanBDKNY
    @UrbanBDKNY 4 роки тому +2

    "This video is a little long"
    Nope. Just perfect

  • @xwinglover
    @xwinglover 4 роки тому

    Great video

  • @szeredaiakos
    @szeredaiakos 4 роки тому

    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.

  • @SamA-mi6yb
    @SamA-mi6yb 2 роки тому

    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?

    • @DrupalizeMe
      @DrupalizeMe  2 роки тому

      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.

  • @pierrel9533
    @pierrel9533 5 років тому

    thx i managed to understand even though i got adhd and the guy next to me stinks a fuykcing lot

  • @ivannsanchez5613
    @ivannsanchez5613 5 років тому +3

    Wait i think im the first who comment in this video

  • @rajeshramvani2011
    @rajeshramvani2011 3 роки тому

    Speech is very fast