Contributions API

Calling all Drupal developers!

Help us get this on the first page of Digg. DIGG NOW!

Modules in 5

core.php

Version

1.125.2.11 (checked in on 2008/04/14 at 12:37:19 by guardian)

Description

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

Functions

Namesort iconDescription
custom_url_rewritecustom_url_rewrite is not a hook, it's a function you can add to settings.php to manage aliases with some code.
hook_blockDeclare a block or set of blocks.
hook_commentAct on comments.
hook_cronPerform periodic actions.
hook_db_rewrite_sqlAdd 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_elementsAllows modules to declare their own form element types and specify their default values.
hook_exitPerform cleanup tasks.
hook_file_downloadAllow file downloads.
hook_filterDefine content filters.
hook_filter_tipsProvide tips for using filters.
hook_footerInsert closing HTML.
hook_formsMap form_ids to builder functions.
hook_form_alterPerform alterations before a form is rendered.
hook_helpProvide online user help.
hook_initPerform setup tasks.
hook_linkDefine internal Drupal links.
hook_link_alterPerform alterations before links on a node are rendered. One popular use of this hook is to add/delete links from other modules.
hook_mail_alterAlter 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_menuDefine menu items and page callbacks.
hook_nodeapiAct on nodes defined by other modules.
hook_node_access_recordsSet permissions for a node to be written to the database.
hook_node_grantsInform the node access system what permissions the user has.
hook_node_operationsAdd mass node operations.
hook_permDefine user permissions.
hook_pingPing another server.
hook_profile_alterPerform alterations profile items before they are rendered. You may omit/add/re-sort/re-categorize, etc.
hook_searchDefine a custom search routine.
hook_search_preprocessPreprocess text for the search index.
hook_taxonomyAct on taxonomy changes.
hook_update_indexUpdate Drupal's full-text index for this module.
hook_userAct on user account actions.
hook_user_operationsAdd mass user operations.
hook_xmlrpcRegister XML-RPC callbacks.