Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
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.
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.

Other projects


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