system.api.php

  1. drupal
    1. drupal7

Version 1.38 (checked in on 2009/05/24 at 17:39:34 by dries)

Hooks provided by Drupal core and the System module.

Funktionen & Methoden

NameBeschreibung
custom_url_rewrite_inboundcustom_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_outboundcustom_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_bootPerform setup tasks. See also, hook_init.
hook_cronPerform periodic actions.
hook_db_rewrite_sqlRewrite database queries, usually for access control.
hook_disablePerform necessary actions before module is disabled.
hook_elementsAllows modules to declare their own Forms API element types and specify their default values.
hook_enablePerform necessary actions after module is enabled.
hook_exitPerform cleanup tasks.
hook_file_copyRespond to a file that has been copied.
hook_file_deleteRespond to a file being deleted.
hook_file_downloadControl access to private file downloads and specify HTTP headers.
hook_file_insertRespond to a file being added.
hook_file_loadLoad additional information into file objects.
hook_file_moveRespond to a file that has been moved.
hook_file_referencesReport the number of times a file is referenced by a module.
hook_file_updateRespond to a file being updated.
hook_file_validateCheck that files meet a given criteria.
hook_flush_cachesAdd a list of cache tables to be cleared.
hook_footerInsert closing HTML.
hook_formsMap form_ids to builder functions.
hook_form_alterPerform alterations before a form is rendered.
hook_form_FORM_ID_alterProvide a form-specific alteration instead of the global hook_form_alter().
hook_image_toolkitsDefine image toolkits provided by this module.
hook_initPerform setup tasks. See also, hook_boot.
hook_installInstall the current version of the database schema, and any other setup tasks.
hook_js_alterPerform necessary alterations to the JavaScript before it is presented on the page.
hook_linkDefine internal Drupal links.
hook_link_alterPerform 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_mailPrepare a message based on parameters.
hook_mail_alterAlter 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_disabledPerform necessary actions after modules are disabled.
hook_modules_enabledPerform necessary actions after modules are enabled.
hook_modules_installedPerform necessary actions after modules are installed.
hook_modules_uninstalledPerform necessary actions after modules are uninstalled.
hook_page_alterPerform alterations before a page is rendered.
hook_permDefine user permissions.
hook_profile_alterPerform alterations profile items before they are rendered. You may omit/add/re-sort/re-categorize, etc.
hook_query_alterPerform alterations to a structured query.
hook_query_TAG_alterPerform alterations to a structured query for a given tag.
hook_requirementsCheck installation requirements and do status reporting.
hook_schemaDefine the current version of the database schema.
hook_schema_alterPerform alterations to existing database schemas.
hook_system_info_alterAlter the information parsed from module and theme .info files
hook_themeRegister a module (or theme's) theme implementations.
hook_theme_registry_alterAlter the theme registry information returned from hook_theme().
hook_uninstallRemove any information that the module sets.
hook_update_last_removedReturn a number which is no longer available as hook_update_N().
hook_update_NPerform 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_watchdogLog an event message
hook_xmlrpcRegister XML-RPC callbacks.

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen