### Eclipse Workspace Patch 1.0
#P D7-HEAD
Index: modules/field/field.api.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/field/field.api.php,v
retrieving revision 1.71
diff -u -r1.71 field.api.php
--- modules/field/field.api.php	6 Apr 2010 16:49:12 -0000	1.71
+++ modules/field/field.api.php	21 Apr 2010 17:27:10 -0000
@@ -1066,6 +1066,29 @@
 }
 
 /**
+ * Act on field_multilingual_available_languages().
+ * 
+ * This hook is invoked in field_multilingual_available_languages(). It allows
+ * other modules to affect which languages are available.
+ * 
+ * @param $entity_type
+ *   The type of the entity the field is attached to, e.g. 'node' or 'user'.
+ * @param $field
+ *   A field structure.
+ * @param $languages
+ *   An array of language preferences which will be intersected with the enabled
+ *   languages.
+ */
+function hook_field_languages($entity_type, $field, $languages) {
+  if ($entity_type == 'user') {
+    // Add an unavailable language
+    $languages[] = 'user_lingo';
+    // Remove an available language
+    unset($languages[0]);
+  }
+}
+
+/**
  * Act on field_language().
  *
  * This hook is invoked to alter the array of display languages for the given
