system.api.php

Version 1.142 (checked in on 2010/03/11 at 21:23:06 by dries)

Hooks provided by Drupal core and the System module.

Functions

NameDescription
hook_actions_deleteExecutes code after an action is deleted.
hook_action_infoDeclares information about actions.
hook_action_info_alterAlters the actions declared by another module.
hook_admin_pathsDefine administrative paths.
hook_admin_paths_alterRedefine administrative paths defined by other modules.
hook_ajax_render_alterAlter the commands that are sent to the user through the AJAX framework.
hook_archiver_infoDeclare archivers to the system.
hook_archiver_info_alterAlter archiver information declared by other modules.
hook_bootPerform setup tasks. See also, hook_init.
hook_countries_alterAlter the default country list.
hook_cronPerform periodic actions.
hook_cron_queue_infoDeclare queues holding items that need to be run periodically.
hook_cron_queue_info_alterAlter cron queue information before cron runs.
hook_css_alterAlter CSS files before they are output on the page.
hook_custom_themeReturn the machine-readable name of the theme to use for the current page.
hook_date_formatsDefines additional date formats.
hook_date_formats_alterAlters date types and formats declared by another module.
hook_date_format_typesDefines additional date types.
hook_disablePerform necessary actions before module is disabled.
hook_drupal_goto_alterChange the page the user is sent to by drupal_goto().
hook_element_infoAllows modules to declare their own Forms API element types and specify their default values.
hook_element_info_alterAlter the element type information returned from modules.
hook_enablePerform necessary actions after module is enabled.
hook_entity_infoInform the base system and the Field API about one or more entity types.
hook_entity_info_alterAlter the entity info.
hook_entity_insertAct on entities when inserted.
hook_entity_loadAct on entities when loaded.
hook_entity_prepare_viewAct on entities as they are being prepared for view.
hook_entity_updateAct on entities when updated.
hook_exitPerform cleanup tasks.
hook_file_copyRespond to a file that has been copied.
hook_file_deleteRespond to a file being deleted.
hook_file_downloadControl access to private file downloads and specify HTTP headers.
hook_file_insertRespond to a file being added.
hook_file_loadLoad additional information into file objects.
hook_file_mimetype_mapping_alterAlter MIME type mappings used to determine MIME type from a file extension.
hook_file_moveRespond to a file that has been moved.
hook_file_referencesReport the number of times a file is referenced by a module.
hook_file_updateRespond to a file being updated.
hook_file_url_alterAlter the URL to a file.
hook_file_validateCheck that files meet a given criteria.
hook_flush_cachesAdd a list of cache tables to be cleared.
hook_formsMap form_ids to form builder functions.
hook_form_alterPerform alterations before a form is rendered.
hook_form_FORM_ID_alterProvide a form-specific alteration instead of the global hook_form_alter().
hook_hook_infoDefines one or more hooks that are exposed by a module.
hook_html_head_alterAlter XHTML HEAD tags before they are rendered by drupal_get_html_head().
hook_image_toolkitsDefine image toolkits provided by this module.
hook_initPerform setup tasks. See also, hook_boot.
hook_installPerform setup tasks when the module is installed.
hook_install_tasksReturn an array of tasks to be performed by an installation profile.
hook_install_tasks_alterAlter the full list of installation tasks.
hook_js_alterPerform necessary alterations to the JavaScript before it is presented on the page.
hook_libraryRegisters JavaScript/CSS libraries associated with a module.
hook_library_alterAlters the JavaScript/CSS library registry.
hook_mailPrepare a message based on parameters; called from drupal_mail().
hook_mail_alterAlter an email message created with the drupal_mail() function.
hook_menu_active_handler_alterAlters the router item for the active menu handler.
hook_modules_disabledPerform necessary actions after modules are disabled.
hook_modules_enabledPerform necessary actions after modules are enabled.
hook_modules_installedPerform necessary actions after modules are installed.
hook_modules_uninstalledPerform necessary actions after modules are uninstalled.
hook_page_alterPerform alterations before a page is rendered.
hook_page_buildAdd elements to a page before it is rendered.
hook_page_delivery_callback_alterAlters the delivery callback used to send the result of the page callback to the browser.
hook_permissionDefine user permissions.
hook_query_alterPerform alterations to a structured query.
hook_query_TAG_alterPerform alterations to a structured query for a given tag.
hook_registry_files_alterPerform necessary alterations to the list of files parsed by the registry.
hook_requirementsCheck installation requirements and do status reporting.
hook_schemaDefine the current version of the database schema.
hook_schema_alterPerform alterations to existing database schemas.
hook_stream_wrappersRegisters PHP stream wrapper implementations associated with a module.
hook_stream_wrappers_alterAlters the list of PHP stream wrapper implementations.
hook_system_info_alterAlter the information parsed from module and theme .info files
hook_system_themes_page_alterAlters theme operation links.
hook_themeRegister a module (or theme's) theme implementations.
hook_theme_registry_alterAlter the theme registry information returned from hook_theme().
hook_tokensProvide replacement values for placeholder tokens.
hook_token_infoProvide metadata about available placeholder tokens and token types.
hook_token_info_alterAlter the metadata about available placeholder tokens and token types.
hook_uninstallRemove any information that the module sets.
hook_update_dependenciesReturn an array of information about module update dependencies.
hook_update_last_removedReturn a number which is no longer available as hook_update_N().
hook_update_NPerform a single update.
hook_url_inbound_alterAlters inbound URL requests.
hook_url_outbound_alterAlters outbound URLs.
hook_username_alterAlter the username that is displayed for a user.
hook_watchdogLog an event message
hook_xmlrpcRegister XML-RPC callbacks.
hook_xmlrpc_alterAlter the definition of XML-RPC methods before they are called.