Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
locale_translation_batch_fetch_finished core/modules/locale/locale.batch.inc Implements callback_batch_finished(). 3
locale_translation_batch_fetch_import core/modules/locale/locale.batch.inc Implements callback_batch_operation(). 1 3
locale_translation_batch_status_build core/modules/locale/locale.compare.inc Builds a batch to get the status of remote and local translation files. 1
locale_translation_batch_status_check core/modules/locale/locale.batch.inc Implements callback_batch_operation(). 3 1
locale_translation_batch_status_finished core/modules/locale/locale.batch.inc Implements callback_batch_finished(). 1
locale_translation_batch_update_build

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFetch::class) ->batchUpdateBuild($projects, $langcodes, $options) instead.

core/modules/locale/locale.fetch.inc Builds a batch to check, download and import project translations.
locale_translation_batch_version_check core/modules/locale/locale.batch.inc Implements callback_batch_operation(). 1 1
locale_translation_build_projects core/modules/locale/locale.compare.inc Builds list of projects and stores the result in the database. 6
locale_translation_build_server_pattern

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class) ->buildServerPattern($project, $template) instead.

core/modules/locale/locale.translation.inc Build path to translation source, out of a server path replacement pattern.
locale_translation_build_sources

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class) ->buildSources($projects, $langcodes) instead.

core/modules/locale/locale.translation.inc Build translation sources.
locale_translation_check_projects core/modules/locale/locale.compare.inc Check for the latest release of project translations. 1
locale_translation_check_projects_batch core/modules/locale/locale.compare.inc Gets and stores the status and timestamp of remote po files. 1
locale_translation_check_projects_local core/modules/locale/locale.compare.inc Check and store the status and timestamp of local po files. 2
locale_translation_clear_cache_projects

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('locale.project')->resetCache() instead.

core/modules/locale/locale.translation.inc Clears the projects cache.
locale_translation_clear_status core/modules/locale/locale.module Clear the translation status cache. 3
locale_translation_default_translation_server core/modules/locale/locale.compare.inc Retrieve data for default server. 1
locale_translation_download_source

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFileManager::class) ->downloadTranslationSource($source_file, $directory) instead.

core/modules/locale/locale.batch.inc Downloads a translation file from a remote server.
locale_translation_file_history_delete core/modules/locale/locale.module Deletes the history of downloaded translations. 2
locale_translation_flush_projects core/modules/locale/locale.compare.inc Clear the project data table. 1
locale_translation_get_file_history core/modules/locale/locale.module Gets current translation status from the {locale_file} table. 6 5
locale_translation_get_projects

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('locale.project')->getProjects($project_names) instead.

core/modules/locale/locale.translation.inc Get array of projects which are available for interface translation. 1
locale_translation_get_status core/modules/locale/locale.module Gets the current translation status. 18
locale_translation_http_check

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFileManager::class)checkRemoteFileStatus($uri) instead.

core/modules/locale/locale.batch.inc Check if remote file exists and when it was last updated.
locale_translation_language_table core/modules/locale/locale.module Form element callback: After build changes to the language update table. 1
locale_translation_load_sources

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class) ->loadSources($projects, $langcodes) instead.

core/modules/locale/locale.translation.inc Loads cached translation sources containing current translation status.
locale_translation_project_list core/modules/locale/locale.compare.inc Fetch an array of projects for translation update. 2 1
locale_translation_source_build

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class) ->sourceBuild($project, $langcode, $filename) instead.

core/modules/locale/locale.translation.inc Builds abstract translation source.
locale_translation_source_check_file

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class)->sourceCheckFile($source) instead.

core/modules/locale/locale.translation.inc Checks whether a po file exists in the local filesystem.
locale_translation_status_delete_languages core/modules/locale/locale.module Delete language entries from the status cache. 1
locale_translation_status_delete_projects core/modules/locale/locale.module Delete project entries from the status cache. 2
locale_translation_status_save core/modules/locale/locale.module Saves the status of translation sources in static cache. 4
locale_translation_update_file_history core/modules/locale/locale.module Updates the {locale_file} table. 3
locale_translation_use_remote_source core/modules/locale/locale.module Checks whether remote translation sources are used. 6
locale_uninstall core/modules/locale/locale.install Implements hook_uninstall().
locale_update_10300 core/modules/locale/locale.install Add an index on locales_location on type and name.
locale_update_11401 core/modules/locale/locale.install Add a hash column to the {locale_file} table.
locale_update_last_removed core/modules/locale/locale.install Implements hook_update_last_removed().
media_filter_format_edit_form_validate

in drupal:11.4.0 and is removed from drupal:12.0.0. Use MediaHooks::formatEditFormValidate() instead.

core/modules/media/media.module Validate callback to ensure filter order and allowed_html are compatible.
media_install core/modules/media/media.install Implements hook_install().
media_library_install core/modules/media_library/media_library.install Implements hook_install().
media_library_removed_post_updates core/modules/media_library/media_library.post_update.php Implements hook_removed_post_updates().
media_library_update_last_removed core/modules/media_library/media_library.install Implements hook_update_last_removed().
media_post_update_media_author_views_filter_update core/modules/media/media.post_update.php Empty update function to clear the Views data cache.
media_removed_post_updates core/modules/media/media.post_update.php Implements hook_removed_post_updates().
media_update_last_removed core/modules/media/media.install Implements hook_update_last_removed().
menu_link_content_removed_post_updates core/modules/menu_link_content/menu_link_content.post_update.php Implements hook_removed_post_updates().
menu_link_content_update_last_removed core/modules/menu_link_content/menu_link_content.install Implements hook_update_last_removed().
menu_ui_form_node_form_submit core/modules/menu_ui/menu_ui.module Form submission handler for menu item field on the node form. 1
menu_ui_form_node_type_form_builder core/modules/menu_ui/menu_ui.module Entity builder for the node type form with menu options. 1
menu_ui_form_node_type_form_validate core/modules/menu_ui/menu_ui.module Validate handler for forms with menu options. 1

Other projects


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