Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
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.
hook_language_switch_links_alter modules/system/language.api.php Perform alterations on language switcher links.
hook_language_types_info modules/system/language.api.php Define language types.
hook_language_types_info_alter modules/system/language.api.php Perform alterations on language types.
hook_library modules/system/system.api.php Registers JavaScript/CSS libraries associated with a module.
hook_library_alter modules/system/system.api.php Alters the JavaScript/CSS library registry.
hook_load modules/node/node.api.php Act on nodes being loaded from the database.
hook_locale modules/locale/locale.api.php Allows modules to define their own text groups that can be translated.
hook_mail modules/system/system.api.php Prepare a message based on parameters; called from drupal_mail().
hook_mail_alter modules/system/system.api.php Alter an email message created with the drupal_mail() function.
hook_menu modules/system/system.api.php Define menu items and page callbacks.
hook_menu_alter modules/system/system.api.php Alter the data being saved to the {menu_router} table after hook_menu is invoked.
hook_menu_breadcrumb_alter modules/system/system.api.php Alter links in the active trail before it is rendered as the breadcrumb.
hook_menu_contextual_links_alter modules/system/system.api.php Alter contextual links before they are rendered.
hook_menu_delete modules/menu/menu.api.php Respond to a custom menu deletion.
hook_menu_get_item_alter modules/system/system.api.php Alter a menu router item right after it has been retrieved from the database or cache.
hook_menu_insert modules/menu/menu.api.php Respond to a custom menu creation.
hook_menu_link_alter modules/system/system.api.php Alter the data being saved to the {menu_links} table by menu_link_save().
hook_menu_link_delete modules/system/system.api.php Inform modules that a menu link has been deleted.
hook_menu_link_insert modules/system/system.api.php Inform modules that a menu link has been created.
hook_menu_link_update modules/system/system.api.php Inform modules that a menu link has been updated.
hook_menu_local_tasks_alter modules/system/system.api.php Alter tabs and actions displayed on the page before they are rendered.
hook_menu_site_status_alter modules/system/system.api.php Control site status before menu dispatching.
hook_menu_update modules/menu/menu.api.php Respond to a custom menu update.
hook_modules_disabled modules/system/system.api.php Perform necessary actions after modules are disabled.
hook_modules_enabled modules/system/system.api.php Perform necessary actions after modules are enabled.
hook_modules_installed modules/system/system.api.php Perform necessary actions after modules are installed.
hook_modules_uninstalled modules/system/system.api.php Perform necessary actions after modules are uninstalled.
hook_module_implements_alter modules/system/system.api.php Alter the registry of modules implementing a hook.
hook_multilingual_settings_changed modules/locale/locale.api.php Allow modules to react to language settings changes.
hook_node_access modules/node/node.api.php Control access to a node.
hook_node_access_records modules/node/node.api.php Set permissions for a node to be written to the database.
hook_node_access_records_alter modules/node/node.api.php Alter permissions for a node before it is written to the database.
hook_node_delete modules/node/node.api.php Respond to node deletion.
hook_node_grants modules/node/node.api.php Inform the node access system what permissions the user has.
hook_node_grants_alter modules/node/node.api.php Alter user access rules when trying to view, edit or delete a node.
hook_node_info modules/node/node.api.php Define module-provided node types.
hook_node_insert modules/node/node.api.php Respond to creation of a new node.
hook_node_load modules/node/node.api.php Act on arbitrary nodes being loaded from the database.
hook_node_operations modules/node/node.api.php Add mass node operations.
hook_node_prepare modules/node/node.api.php Act on a node object about to be shown on the add/edit form.
hook_node_presave modules/node/node.api.php Act on a node being inserted or updated.
hook_node_revision_delete modules/node/node.api.php Respond to deletion of a node revision.
hook_node_search_result modules/node/node.api.php Act on a node being displayed as a search result.

Other projects


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