1.168.2.31 (checked in on 2008/09/23 at 22:38:56 by damz)
These are the hooks that are invoked by the Drupal core.
Core hooks are typically called in all modules at once using module_invoke_all().
| Name | Description |
|---|---|
| custom_url_rewrite_inbound | custom_url_rewrite_inbound is not a hook, it's a function you can add to settings.php to alter incoming requests so they map to a Drupal path. This function is called before modules are loaded and the menu system is initialized and it changes... |
| custom_url_rewrite_outbound | custom_url_rewrite_outbound is not a hook, it's a function you can add to settings.php to alter all links generated by Drupal. This function is called from url(). This function is called very frequently (100+ times per page) so performance... |
| hook_actions_delete | Execute code after an action is deleted. |
| hook_action_info | Inform the actions code that a module implements certain actions. |
| hook_action_info_alter | Alter the actions declared by another module. |
| hook_block | Declare a block or set of blocks. |
| hook_boot | Perform setup tasks. See also, hook_init. |
| hook_comment | Act on comments. |
| hook_cron | Perform periodic actions. |
| hook_db_rewrite_sql | Rewrite database queries, usually for access control. |
| hook_elements | Allows modules to declare their own Forms API element types and specify their default values. |
| hook_exit | Perform cleanup tasks. |
| hook_file_download | Control access to private file downloads and specify HTTP headers. |
| hook_filter | Define content filters. |
| hook_filter_tips | Provide tips for using filters. |
| hook_flush_caches | Add a list of cache tables to be cleared. |
| hook_footer | Insert closing HTML. |
| hook_forms | Map form_ids to builder functions. |
| hook_form_alter | Perform alterations before a form is rendered. |
| hook_help | Provide online user help. |
| hook_hook_info | Expose a list of triggers (events) that your module is allowing users to assign actions to. |
| hook_init | Perform setup tasks. See also, hook_boot. |
| hook_link | Define internal Drupal links. |
| hook_link_alter | Perform alterations before links on a node are rendered. One popular use of this hook is to add/delete links from other modules. |
| hook_locale | Allows modules to define their own text groups that can be translated. |
| hook_mail | Prepare a message based on parameters. @see drupal_mail for more. |
| hook_mail_alter | Alter any aspect of the emails sent by Drupal. You can use this hook to add a common site footer to all outgoing emails; add extra header fields and/or modify the mails sent out in any way. HTML-izing the outgoing mails is one possibility. See also... |
| hook_menu | Define menu items and page callbacks. |
| hook_menu_alter | Alter the data being saved to the {menu_router} table after hook_menu is invoked. |
| hook_menu_link_alter | Alter the data being saved to the {menu_links} table by menu_link_save(). |
| hook_nodeapi | Act on nodes defined by other modules. |
| hook_node_access_records | Set permissions for a node to be written to the database. |
| hook_node_grants | Inform the node access system what permissions the user has. |
| hook_node_operations | Add mass node operations. |
| hook_perm | Define user permissions. |
| hook_ping | Ping another server. |
| hook_profile_alter | Perform alterations profile items before they are rendered. You may omit/add/re-sort/re-categorize, etc. |
| hook_search | Define a custom search routine. |
| hook_search_preprocess | Preprocess text for the search index. |
| hook_system_info_alter | Alter the information parsed from module and theme .info files |
| hook_taxonomy | Act on taxonomy changes. |
| hook_term_path | Allows modules to provide an alternative path for the terms it manages. |
| hook_theme | Register a module (or theme's) theme implementations. |
| hook_theme_registry_alter | Alter the theme registry information returned from hook_theme(). |
| hook_translated_menu_link_alter | Alter a menu link after it's translated, but before it's rendered. |
| hook_update_index | Update Drupal's full-text index for this module. |
| hook_update_status_alter | Alter the information about available updates for projects. |
| hook_user | Act on user account actions. |
| hook_user_operations | Add mass user operations. |
| hook_watchdog | Log an event message |
| hook_xmlrpc | Register XML-RPC callbacks. |