Last updated 29 May 2015. Created on 21 January 2008.
Edited by Nitesh Sethia, jenlampton, Ayesh, patrickd. Log in to edit this page.

As part of GHOP 2007, one task was to create a cheat sheet for core hooks. kourge came to the rescue and created such a cheat sheet for Drupal 6. See the attachment below.

List of all Drupal 7 hooks are available on https://api.drupal.org/api/drupal/includes!module.inc/group/hooks/7 with a short description on each of it.

For Drupal 7 there is now also a Cheat Sheet Generator module that generates a detailed list of all available core hooks:

AttachmentSize
drupal_6_core_hooks_cheat_sheet.pdf117.16 KB

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.

Comments

tobiasoleary’s picture

Here's the start of a classification of hook by function or area. I think what's really needed in a mind-graph or other classification system.

System

hook_cron
hook_flush_caches
hook_locale
hook_mail
hook_mail_alter

Module Lifetime

hook_enable
hook_disable

Node Persistence

hook_delete
hook_insert

Permissions

hook_access
hook_filter
hook_filter_tips

Node Loading

hook_db_rewrite_sql
hook_load

Path / URL

hook_menu
hook_menu_alter
hook_menu_link_alter
hook_file_download
hook_link
hook_link_alter

Processing Requests

hook_boot
hook_init
custom_url_rewrite_inbound
custom_url_rewrite_outbound
hook_exit
hook_footer

Block

hook_block

Actions/Triggers

hook_action_info
hook_action_info_alter
hook_actions_delete
hook_hook_info

Comments

hook_comment

Database

hook_db_rewrite_sql
hook_install

Form

hook_elements
hook_form
hook_forms
hook_form_alter
hook_form_FORM_ID_alter

Documentation

hook_help

nilashis’s picture

is there a similar cheatsheet for Drupal7? (or at least one with updates/changes for drupal 7?)

jenlampton’s picture