Version 1.38 (checked in on 2009/05/24 at 17:39:34 by dries)
Hooks provided by Drupal core and the System module.
| Name | Beschreibung |
|---|---|
| custom_url_rewrite_inbound | custom_url_rewrite_inbound is not a hook, it's a function you can add to settings.php to alter incoming requests so they map to a Drupal path. This function is called before modules are loaded and the menu system is initialized and it changes… |
| custom_url_rewrite_outbound | custom_url_rewrite_outbound is not a hook, it's a function you can add to settings.php to alter all links generated by Drupal. This function is called from url(). This function is called very frequently (100+ times per page) so performance… |
| hook_boot | Perform setup tasks. See also, hook_init. |
| hook_cron | Perform periodic actions. |
| hook_db_rewrite_sql | Rewrite database queries, usually for access control. |
| hook_disable | Perform necessary actions before module is disabled. |
| hook_elements | Allows modules to declare their own Forms API element types and specify their default values. |
| hook_enable | Perform necessary actions after module is enabled. |
| hook_exit | Perform cleanup tasks. |
| hook_file_copy | Respond to a file that has been copied. |
| hook_file_delete | Respond to a file being deleted. |
| hook_file_download | Control access to private file downloads and specify HTTP headers. |
| hook_file_insert | Respond to a file being added. |
| hook_file_load | Load additional information into file objects. |
| hook_file_move | Respond to a file that has been moved. |
| hook_file_references | Report the number of times a file is referenced by a module. |
| hook_file_update | Respond to a file being updated. |
| hook_file_validate | Check that files meet a given criteria. |
| hook_flush_caches | Add a list of cache tables to be cleared. |
| hook_footer | Insert closing HTML. |
| hook_forms | Map form_ids to builder functions. |
| hook_form_alter | Perform alterations before a form is rendered. |
| hook_form_FORM_ID_alter | Provide a form-specific alteration instead of the global hook_form_alter(). |
| hook_image_toolkits | Define image toolkits provided by this module. |
| hook_init | Perform setup tasks. See also, hook_boot. |
| hook_install | Install the current version of the database schema, and any other setup tasks. |
| hook_js_alter | Perform necessary alterations to the JavaScript before it is presented on the page. |
| hook_link | Define internal Drupal links. |
| hook_link_alter | Perform alterations before links on a comment are rendered. One popular use of this hook is to modify/remove links from other modules. If you want to add a link to the links section of a node, use hook_link instead. |
| hook_mail | Prepare a message based on parameters. |
| hook_mail_alter | Alter any aspect of the emails sent by Drupal. You can use this hook to add a common site footer to all outgoing emails; add extra header fields and/or modify the mails sent out in any way. HTML-izing the outgoing mails is one possibility. See also… |
| hook_modules_disabled | Perform necessary actions after modules are disabled. |
| hook_modules_enabled | Perform necessary actions after modules are enabled. |
| hook_modules_installed | Perform necessary actions after modules are installed. |
| hook_modules_uninstalled | Perform necessary actions after modules are uninstalled. |
| hook_page_alter | Perform alterations before a page is rendered. |
| hook_perm | Define user permissions. |
| hook_profile_alter | Perform alterations profile items before they are rendered. You may omit/add/re-sort/re-categorize, etc. |
| hook_query_alter | Perform alterations to a structured query. |
| hook_query_TAG_alter | Perform alterations to a structured query for a given tag. |
| hook_requirements | Check installation requirements and do status reporting. |
| hook_schema | Define the current version of the database schema. |
| hook_schema_alter | Perform alterations to existing database schemas. |
| hook_system_info_alter | Alter the information parsed from module and theme .info files |
| hook_theme | Register a module (or theme's) theme implementations. |
| hook_theme_registry_alter | Alter the theme registry information returned from hook_theme(). |
| hook_uninstall | Remove any information that the module sets. |
| hook_update_last_removed | Return a number which is no longer available as hook_update_N(). |
| hook_update_N | Perform a single update. For each patch which requires a database change add a new hook_update_N() which will be called by update.php. |
| hook_watchdog | Log an event message |
| hook_xmlrpc | Register XML-RPC callbacks. |
Kommentare
Kommentar hinzufügen