Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
hook_node_submit modules/node/node.api.php Act on a node after validated form values have been copied to it.
hook_node_type_delete modules/node/node.api.php Respond to node type deletion.
hook_node_type_insert modules/node/node.api.php Respond to node type creation.
hook_node_type_update modules/node/node.api.php Respond to node type updates.
hook_node_update modules/node/node.api.php Respond to updates to a node.
hook_node_update_index modules/node/node.api.php Act on a node being indexed for searching.
hook_node_validate modules/node/node.api.php Perform node validation before a node is created or updated.
hook_node_view modules/node/node.api.php Act on a node that is being assembled before rendering.
hook_node_view_alter modules/node/node.api.php Alter the results of node_view().
hook_openid modules/openid/openid.api.php Allow modules to modify the OpenID request parameters.
hook_openid_discovery_method_info modules/openid/openid.api.php Allow modules to declare OpenID discovery methods.
hook_openid_discovery_method_info_alter modules/openid/openid.api.php Allow modules to alter discovery methods.
hook_openid_normalization_method_info modules/openid/openid.api.php Allow modules to declare OpenID normalization methods.
hook_openid_normalization_method_info_alter modules/openid/openid.api.php Allow modules to alter normalization methods.
hook_openid_response modules/openid/openid.api.php Allow modules to act upon a successful OpenID login.
hook_options_list modules/field/modules/options/options.api.php Returns the list of options to be displayed for a field.
hook_overlay_child_initialize modules/overlay/overlay.api.php Allow modules to act when an overlay child window is initialized.
hook_overlay_parent_initialize modules/overlay/overlay.api.php Allow modules to act when an overlay parent window is initialized.
hook_page_alter modules/system/system.api.php Perform alterations before a page is rendered.
hook_page_build modules/system/system.api.php Add elements to a page before it is rendered.
hook_page_delivery_callback_alter modules/system/system.api.php Alters the delivery callback used to send the result of the page callback to the browser.
hook_path_delete modules/path/path.api.php Respond to a path being deleted.
hook_path_insert modules/path/path.api.php Respond to a path being inserted.
hook_path_update modules/path/path.api.php Respond to a path being updated.
hook_permission modules/system/system.api.php Define user permissions.
hook_prepare modules/node/node.api.php Act on a node object about to be shown on the add/edit form.
hook_preprocess modules/system/theme.api.php Preprocess theme variables for templates.
hook_preprocess_HOOK modules/system/theme.api.php Preprocess theme variables for a specific theme hook.
hook_process modules/system/theme.api.php Process theme variables for templates.
hook_process_HOOK modules/system/theme.api.php Process theme variables for a specific theme hook.
hook_query_alter modules/system/system.api.php Perform alterations to a structured query.
hook_query_TAG_alter modules/system/system.api.php Perform alterations to a structured query for a given tag.
hook_ranking modules/node/node.api.php Provide additional methods of scoring for core search results for nodes.
hook_rdf_mapping modules/rdf/rdf.api.php Allow modules to define RDF mappings for field bundles.
hook_rdf_namespaces modules/rdf/rdf.api.php Allow modules to define namespaces for RDF mappings.
hook_registry_files_alter modules/system/system.api.php Perform necessary alterations to the list of files parsed by the registry.
hook_requirements modules/system/system.api.php Check installation requirements and do status reporting.
hook_schema modules/system/system.api.php Define the current version of the database schema.
hook_schema_alter modules/system/system.api.php Perform alterations to existing database schemas.
hook_search_access modules/search/search.api.php Define access to a custom search routine.
hook_search_admin modules/search/search.api.php Add elements to the search settings form.
hook_search_execute modules/search/search.api.php Execute a search for a set of key words.
hook_search_info modules/search/search.api.php Define a custom search type.
hook_search_page modules/search/search.api.php Override the rendering of search results.
hook_search_preprocess modules/search/search.api.php Preprocess text for search.
hook_search_reset modules/search/search.api.php Take action when the search index is going to be rebuilt.
hook_search_status modules/search/search.api.php Report the status of indexing.
hook_shortcut_default_set modules/shortcut/shortcut.api.php Return the name of a default shortcut set for the provided user account.
hook_simpletest_alter modules/simpletest/simpletest.api.php Alter the list of tests.
hook_stream_wrappers modules/system/system.api.php Registers PHP stream wrapper implementations associated with a module.

Other projects


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