> For the complete documentation index, see [llms.txt](https://cathy-thy.gitbook.io/drupal-9/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cathy-thy.gitbook.io/drupal-9/custom-modules/hook-introduction.md). Agents can also search and read this documentation through its [MCP server](https://cathy-thy.gitbook.io/drupal-9/~gitbook/mcp).

# Hook Introduction

Hook is useful in Drupal as it can serve as an event listener (for example, when you update the node, you can do something).

### Useful Reference

{% embed url="<https://www.drupal.org/docs/creating-custom-modules/understanding-hooks>" %}
