Version 1.142 (checked in on 2010/03/11 at 21:23:06 by dries)
Hooks provided by Drupal core and the System module.
| Name | Description |
|---|---|
| hook_actions_delete | Executes code after an action is deleted. |
| hook_action_info | Declares information about actions. |
| hook_action_info_alter | Alters the actions declared by another module. |
| hook_admin_paths | Define administrative paths. |
| hook_admin_paths_alter | Redefine administrative paths defined by other modules. |
| hook_ajax_render_alter | Alter the commands that are sent to the user through the AJAX framework. |
| hook_archiver_info | Declare archivers to the system. |
| hook_archiver_info_alter | Alter archiver information declared by other modules. |
| hook_boot | Perform setup tasks. See also, hook_init. |
| hook_countries_alter | Alter the default country list. |
| hook_cron | Perform periodic actions. |
| hook_cron_queue_info | Declare queues holding items that need to be run periodically. |
| hook_cron_queue_info_alter | Alter cron queue information before cron runs. |
| hook_css_alter | Alter CSS files before they are output on the page. |
| hook_custom_theme | Return the machine-readable name of the theme to use for the current page. |
| hook_date_formats | Defines additional date formats. |
| hook_date_formats_alter | Alters date types and formats declared by another module. |
| hook_date_format_types | Defines additional date types. |
| hook_disable | Perform necessary actions before module is disabled. |
| hook_drupal_goto_alter | Change the page the user is sent to by drupal_goto(). |
| hook_element_info | Allows modules to declare their own Forms API element types and specify their default values. |
| hook_element_info_alter | Alter the element type information returned from modules. |
| hook_enable | Perform necessary actions after module is enabled. |
| hook_entity_info | Inform the base system and the Field API about one or more entity types. |
| hook_entity_info_alter | Alter the entity info. |
| hook_entity_insert | Act on entities when inserted. |
| hook_entity_load | Act on entities when loaded. |
| hook_entity_prepare_view | Act on entities as they are being prepared for view. |
| hook_entity_update | Act on entities when updated. |
| hook_exit | Perform cleanup tasks. |
| hook_file_copy | Respond to a file that has been copied. |
| hook_file_delete | Respond to a file being deleted. |
| hook_file_download | Control access to private file downloads and specify HTTP headers. |
| hook_file_insert | Respond to a file being added. |
| hook_file_load | Load additional information into file objects. |
| hook_file_mimetype_mapping_alter | Alter MIME type mappings used to determine MIME type from a file extension. |
| hook_file_move | Respond to a file that has been moved. |
| hook_file_references | Report the number of times a file is referenced by a module. |
| hook_file_update | Respond to a file being updated. |
| hook_file_url_alter | Alter the URL to a file. |
| hook_file_validate | Check that files meet a given criteria. |
| hook_flush_caches | Add a list of cache tables to be cleared. |
| hook_forms | Map form_ids to form builder functions. |
| hook_form_alter | Perform alterations before a form is rendered. |
| hook_form_FORM_ID_alter | Provide a form-specific alteration instead of the global hook_form_alter(). |
| hook_hook_info | Defines one or more hooks that are exposed by a module. |
| hook_html_head_alter | Alter XHTML HEAD tags before they are rendered by drupal_get_html_head(). |
| hook_image_toolkits | Define image toolkits provided by this module. |
| hook_init | Perform setup tasks. See also, hook_boot. |
| hook_install | Perform setup tasks when the module is installed. |
| hook_install_tasks | Return an array of tasks to be performed by an installation profile. |
| hook_install_tasks_alter | Alter the full list of installation tasks. |
| hook_js_alter | Perform necessary alterations to the JavaScript before it is presented on the page. |
| hook_library | Registers JavaScript/CSS libraries associated with a module. |
| hook_library_alter | Alters the JavaScript/CSS library registry. |
| hook_mail | Prepare a message based on parameters; called from drupal_mail(). |
| hook_mail_alter | Alter an email message created with the drupal_mail() function. |
| hook_menu_active_handler_alter | Alters the router item for the active menu handler. |
| hook_modules_disabled | Perform necessary actions after modules are disabled. |
| hook_modules_enabled | Perform necessary actions after modules are enabled. |
| hook_modules_installed | Perform necessary actions after modules are installed. |
| hook_modules_uninstalled | Perform necessary actions after modules are uninstalled. |
| hook_page_alter | Perform alterations before a page is rendered. |
| hook_page_build | Add elements to a page before it is rendered. |
| hook_page_delivery_callback_alter | Alters the delivery callback used to send the result of the page callback to the browser. |
| hook_permission | Define user permissions. |
| hook_query_alter | Perform alterations to a structured query. |
| hook_query_TAG_alter | Perform alterations to a structured query for a given tag. |
| hook_registry_files_alter | Perform necessary alterations to the list of files parsed by the registry. |
| hook_requirements | Check installation requirements and do status reporting. |
| hook_schema | Define the current version of the database schema. |
| hook_schema_alter | Perform alterations to existing database schemas. |
| hook_stream_wrappers | Registers PHP stream wrapper implementations associated with a module. |
| hook_stream_wrappers_alter | Alters the list of PHP stream wrapper implementations. |
| hook_system_info_alter | Alter the information parsed from module and theme .info files |
| hook_system_themes_page_alter | Alters theme operation links. |
| hook_theme | Register a module (or theme's) theme implementations. |
| hook_theme_registry_alter | Alter the theme registry information returned from hook_theme(). |
| hook_tokens | Provide replacement values for placeholder tokens. |
| hook_token_info | Provide metadata about available placeholder tokens and token types. |
| hook_token_info_alter | Alter the metadata about available placeholder tokens and token types. |
| hook_uninstall | Remove any information that the module sets. |
| hook_update_dependencies | Return an array of information about module update dependencies. |
| hook_update_last_removed | Return a number which is no longer available as hook_update_N(). |
| hook_update_N | Perform a single update. |
| hook_url_inbound_alter | Alters inbound URL requests. |
| hook_url_outbound_alter | Alters outbound URLs. |
| hook_username_alter | Alter the username that is displayed for a user. |
| hook_watchdog | Log an event message |
| hook_xmlrpc | Register XML-RPC callbacks. |
| hook_xmlrpc_alter | Alter the definition of XML-RPC methods before they are called. |