From b3bb147c8c45011d58acfe34fd34fe46e0704cbc Mon Sep 17 00:00:00 2001
From: Jennifer Hodgdon <yahgrp@poplarware.com>
Date: Wed, 7 Mar 2012 09:28:15 -0800
Subject: [PATCH] =?UTF-8?q?Issue=20#1470080=20by=20G=C3=A1bor=20Hojtsy:=20?=
 =?UTF-8?q?move=20base=20system=20language=20hook=20docs=20to=20standard?=
 =?UTF-8?q?=20location?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../language.api.php}                         | 49 +------------------
 1 file changed, 1 insertion(+), 48 deletions(-)
 rename core/modules/{locale/locale.api.php => system/language.api.php} (84%)

diff --git a/core/modules/locale/locale.api.php b/core/modules/system/language.api.php
similarity index 84%
rename from core/modules/locale/locale.api.php
rename to core/modules/system/language.api.php
index 90a901057667..aa8fd2fa67f0 100644
--- a/core/modules/locale/locale.api.php
+++ b/core/modules/system/language.api.php
@@ -2,7 +2,7 @@
 
 /**
  * @file
- * Hooks provided by the Locale module.
+ * Hooks provided by the base system for language support.
  */
 
 /**
@@ -173,53 +173,6 @@ function hook_language_fallback_candidates_alter(array &$fallback_candidates) {
   $fallback_candidates = array_reverse($fallback_candidates);
 }
 
- /**
- * React to a language about to be added or updated in the system.
- *
- * @param $language
- *   A language object.
- */
-function hook_locale_language_presave($language) {
-  if ($language->default) {
-    // React to a new default language.
-    example_new_default_language($language);
-  }
-}
-
-/**
- * React to a language that was just added to the system.
- *
- * @param $language
- *   A language object.
- */
-function hook_locale_language_insert($language) {
-  example_refresh_permissions();
-}
-
-/**
- * React to a language that was just updated in the system.
- *
- * @param $language
- *   A language object.
- */
-function hook_locale_language_update($language) {
-  example_refresh_permissions();
-}
-
-/**
- * Allow modules to react before the deletion of a language.
- *
- * @param $language
- *   The language object of the language that is about to be deleted.
- */
-function hook_locale_language_delete($language) {
-  // On nodes with this language, unset the language
-  db_update('node')
-    ->fields(array('language' => ''))
-    ->condition('language', $language->langcode)
-    ->execute();
-}
-
 /**
  * @} End of "addtogroup hooks".
  */
-- 
GitLab