Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
1.125.2.11 (checked in on 2008/04/14 at 12:37:19 by guardian)
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 | custom_url_rewrite is not a hook, it's a function you can add to settings.php to manage aliases with some code. |
| hook_block | Declare a block or set of blocks. |
| hook_comment | Act on comments. |
| hook_cron | Perform periodic actions. |
| hook_db_rewrite_sql | Add JOIN and WHERE statements to queries and decide whether the primary_field shall be made DISTINCT. For node objects, primary field is always called nid. For taxonomy terms, it is tid and for vocabularies it is vid. For comments, it is cid. Primary... |
| hook_elements | Allows modules to declare their own form element types and specify their default values. |
| hook_exit | Perform cleanup tasks. |
| hook_file_download | Allow file downloads. |
| hook_filter | Define content filters. |
| hook_filter_tips | Provide tips for using filters. |
| 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_init | Perform setup tasks. |
| 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_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_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_taxonomy | Act on taxonomy changes. |
| hook_update_index | Update Drupal's full-text index for this module. |
| hook_user | Act on user account actions. |
| hook_user_operations | Add mass user operations. |
| hook_xmlrpc | Register XML-RPC callbacks. |