core.php

Version 1.84.2.22 (checked in on 2008/01/28 at 04:04:05 by bdragon)

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

NameDescription
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_form_alterPerform alterations before a form is rendered. One popular use of this hook is to add form elements to the node form.
hook_helpProvide online user help.
hook_initPerform setup tasks.
hook_linkDefine internal Drupal links.
hook_menuDefine menu items and page callbacks.
hook_nodeapiAct on nodes defined by other modules.
hook_node_grantsGrant access to nodes.
hook_permDefine user permissions.
hook_pingPing another server.
hook_searchDefine a custom search routine.
hook_search_preprocessPreprocess text for the search index.
hook_settingsDeclare administrative settings for a module.
hook_taxonomyAct on taxonomy changes.
hook_update_indexUpdate Drupal's full-text index for this module.
hook_userAct on user account actions.
hook_xmlrpcRegister XML-RPC callbacks.
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.