Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
hook_field_widget_WIDGET_TYPE_form_alter modules/field/field.api.php Alter widget forms for a specific widget provided by another module.
hook_filetransfer_info modules/system/system.api.php Register information about FileTransfer classes provided by a module.
hook_filetransfer_info_alter modules/system/system.api.php Alter the FileTransfer class registry.
hook_file_copy modules/system/system.api.php Respond to a file that has been copied.
hook_file_delete modules/system/system.api.php Respond to a file being deleted.
hook_file_download modules/system/system.api.php Control access to private file downloads and specify HTTP headers.
hook_file_download_access modules/file/file.api.php Control download access to files.
hook_file_download_access_alter modules/file/file.api.php Alter the access rules applied to a file download.
hook_file_insert modules/system/system.api.php Respond to a file being added.
hook_file_load modules/system/system.api.php Load additional information into file objects.
hook_file_mimetype_mapping_alter modules/system/system.api.php Alter MIME type mappings used to determine MIME type from a file extension.
hook_file_move modules/system/system.api.php Respond to a file that has been moved.
hook_file_presave modules/system/system.api.php Act on a file being inserted or updated.
hook_file_update modules/system/system.api.php Respond to a file being updated.
hook_file_url_alter modules/system/system.api.php Alter the URL to a file.
hook_file_validate modules/system/system.api.php Check that files meet a given criteria.
hook_filter_format_disable modules/filter/filter.api.php Perform actions when a text format has been disabled.
hook_filter_format_insert modules/filter/filter.api.php Perform actions when a new text format has been created.
hook_filter_format_update modules/filter/filter.api.php Perform actions when a text format has been updated.
hook_filter_info modules/filter/filter.api.php Define content filters.
hook_filter_info_alter modules/filter/filter.api.php Perform alterations on filter definitions.
hook_flush_caches modules/system/system.api.php Add a list of cache tables to be cleared.
hook_form modules/node/node.api.php Display a node editing form.
hook_forms modules/system/system.api.php Map form_ids to form builder functions.
hook_form_alter modules/system/system.api.php Perform alterations before a form is rendered.
hook_form_BASE_FORM_ID_alter modules/system/system.api.php Provide a form-specific alteration for shared ('base') forms.
hook_form_FORM_ID_alter modules/system/system.api.php Provide a form-specific alteration instead of the global hook_form_alter().
hook_form_system_theme_settings_alter modules/system/theme.api.php Allow themes to alter the theme-specific settings form.
hook_help modules/system/system.api.php Provide online user help.
hook_hook_info modules/system/system.api.php Defines one or more hooks that are exposed by a module.
hook_hook_info_alter modules/system/system.api.php Alter information from hook_hook_info().
hook_html_head_alter modules/system/system.api.php Alter XHTML HEAD tags before they are rendered by drupal_get_html_head().
hook_image_default_styles modules/image/image.api.php Provide module-based image styles for reuse throughout Drupal.
hook_image_effect_info modules/image/image.api.php Define information about image effects provided by a module.
hook_image_effect_info_alter modules/image/image.api.php Alter the information provided in hook_image_effect_info().
hook_image_styles_alter modules/image/image.api.php Modify any image styles provided by other modules or the user.
hook_image_style_delete modules/image/image.api.php Respond to image style deletion.
hook_image_style_flush modules/image/image.api.php Respond to image style flushing.
hook_image_style_save modules/image/image.api.php Respond to image style updating.
hook_image_toolkits modules/system/system.api.php Define image toolkits provided by this module.
hook_init modules/system/system.api.php Perform setup tasks for non-cached page requests.
hook_insert modules/node/node.api.php Respond to creation of a new node.
hook_install modules/system/system.api.php Perform setup tasks when the module is installed.
hook_install_tasks modules/system/system.api.php Return an array of tasks to be performed by an installation profile.
hook_install_tasks_alter modules/system/system.api.php Alter the full list of installation tasks.
hook_js_alter modules/system/system.api.php Perform necessary alterations to the JavaScript before it is presented on the page.
hook_language_fallback_candidates_alter modules/system/language.api.php Perform alterations on the language fallback candidates.
hook_language_init modules/system/language.api.php Allows modules to act after language initialization has been performed.
hook_language_negotiation_info modules/system/language.api.php Define language negotiation providers.
hook_language_negotiation_info_alter modules/system/language.api.php Perform alterations on language negoiation providers.

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.