Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
locale modules/locale/locale.module Provides interface translation services. 1 90
locale_add_language includes/locale.inc API function to add a language. 12
locale_batch_by_component includes/locale.inc Prepare a batch to run when installing modules or enabling themes. 1
locale_batch_by_language includes/locale.inc Prepare a batch to import translations for all enabled modules in a given language. 3
locale_block_info modules/locale/locale.module Implements hook_block_info().
locale_block_view modules/locale/locale.module Implements hook_block_view().
locale_css_alter modules/locale/locale.module Implements hook_css_alter().
locale_date_format_form modules/locale/locale.admin.inc Provide date localization configuration options to users. 1
locale_date_format_form_submit modules/locale/locale.admin.inc Submit handler for configuring localized date formats on the locale_date_format_form.
locale_date_format_language_overview_page modules/locale/locale.admin.inc Display edit date format links for each language. 1
locale_date_format_reset_form modules/locale/locale.admin.inc Reset locale specific date formats to the global defaults. 1
locale_date_format_reset_form_submit modules/locale/locale.admin.inc Reset date formats for a specific language to global defaults.
locale_date_format_save includes/locale.inc Save locale specific date formats to the database. 1
locale_entity_info_alter modules/locale/locale.module Implements hook_entity_info_alter().
locale_field_comment_form_submit modules/locale/locale.module Form submit handler for comment_form(). 1
locale_field_entity_form_submit modules/locale/locale.module Handles field language on submit for the given entity type. 2
locale_field_language_alter modules/locale/locale.module Implements hook_field_language_alter().
locale_field_language_fallback modules/locale/locale.module Applies language fallback rules to the fields attached to the given entity. 3 3
locale_field_node_form_submit modules/locale/locale.module Form submit handler for node_form(). 1
locale_form_alter modules/locale/locale.module Implements hook_form_alter().
locale_form_comment_form_alter modules/locale/locale.module Implements hook_form_FORM_ID_alter().
locale_form_node_form_alter modules/locale/locale.module Implements hook_form_BASE_FORM_ID_alter().
locale_form_node_type_form_alter modules/locale/locale.module Implements hook_form_FORM_ID_alter().
locale_form_path_admin_form_alter modules/locale/locale.module Implements hook_form_FORM_ID_alter().
locale_get_localized_date_format includes/locale.inc Select locale date format details from database. 1
locale_get_plural modules/locale/locale.module Returns plural form index for a specific number. 2 1
locale_help modules/locale/locale.module Implements hook_help().
locale_init modules/locale/locale.module Implements hook_init().
locale_install modules/locale/locale.install Implements hook_install().
locale_js_alter modules/locale/locale.module Implements hook_js_alter().
locale_languages_add_screen modules/locale/locale.admin.inc User interface for the language addition screen. 1
locale_languages_configure_form modules/locale/locale.admin.inc Setting for language negotiation options 1
locale_languages_configure_form_submit modules/locale/locale.admin.inc Submit handler for language negotiation settings. 1
locale_languages_custom_form modules/locale/locale.admin.inc Custom language addition form. 1
locale_languages_delete_form modules/locale/locale.admin.inc User interface for the language deletion confirmation screen. 1
locale_languages_delete_form_submit modules/locale/locale.admin.inc Process language deletion submissions.
locale_languages_edit_form modules/locale/locale.admin.inc Editing screen for a particular language. 1
locale_languages_edit_form_submit modules/locale/locale.admin.inc Process the language editing form submission. 1
locale_languages_edit_form_validate modules/locale/locale.admin.inc Validate the language editing form. Reused for custom language addition too. 1 1
locale_languages_overview_form modules/locale/locale.admin.inc User interface for the language overview screen. 1
locale_languages_overview_form_submit modules/locale/locale.admin.inc Process language overview form submissions, updating existing languages.
locale_languages_predefined_form modules/locale/locale.admin.inc Predefined language setup form. 1
locale_languages_predefined_form_submit modules/locale/locale.admin.inc Process the language addition form submission. 1
locale_languages_predefined_form_validate modules/locale/locale.admin.inc Validate the language addition form. 1
locale_language_from_browser includes/locale.inc Identify language from the Accept-language HTTP header we got. 1 1
locale_language_from_interface includes/locale.inc Identifies the language from the current interface language. 1
locale_language_from_session includes/locale.inc Identify language from a request/session parameter. 1
locale_language_from_url includes/locale.inc Identify language via URL prefix or domain. 1
locale_language_from_user includes/locale.inc Identify language from the user preferences. 1
locale_language_list modules/locale/locale.module Returns array of language names 9

Other projects


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