From e6589042e5b39ae7593ee10ec40971515ba7c895 Mon Sep 17 00:00:00 2001
From: xjm <xjm@65776.no-reply.drupal.org>
Date: Sun, 19 Apr 2015 14:47:43 +0200
Subject: [PATCH] Revert "Issue #2146045 by D Szkiba, joshi.rohit100,
 tyler.frankenstein, er.pushpinderrana, dajjen, jhodgdon, joachim: Document
 Field API allowed_values_function callback"

This reverts commit 3a0d4373597e1bf0b43e49f4692ec6990eab41ea.
---
 core/modules/options/options.api.php                        | 4 +---
 core/modules/options/tests/options_test/options_test.module | 4 ++--
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/core/modules/options/options.api.php b/core/modules/options/options.api.php
index 38ee2ef420d3..6907641f1cf5 100644
--- a/core/modules/options/options.api.php
+++ b/core/modules/options/options.api.php
@@ -26,7 +26,6 @@
  *   - entity: The entity object the field is attached to
  *     (\Drupal\Core\Entity\EntityInterface).
  *
- * @ingroup hooks
  * @see hook_options_list()
  */
 function hook_options_list_alter(array &$options, array $context) {
@@ -43,7 +42,7 @@ function hook_options_list_alter(array &$options, array $context) {
  * Callback for options_allowed_values().
  *
  * 'list_*' fields can specify a callback to define the set of their allowed
- * values using the 'allowed_values_function' storage setting.
+ * values using the 'allowed_values_callback' storage setting.
  *
  * That function will be called:
  *  - either in the context of a specific entity, which is then provided as the
@@ -75,7 +74,6 @@ function hook_options_list_alter(array &$options, array $context) {
  *   any context so that other code (e.g. Views filters) can support the allowed
  *   values for all possible entities and bundles.
  *
- * @ingroup callbacks
  * @see options_allowed_values()
  * @see options_test_allowed_values_callback()
  * @see options_test_dynamic_values_callback()
diff --git a/core/modules/options/tests/options_test/options_test.module b/core/modules/options/tests/options_test/options_test.module
index 59b8e1c262b4..2d719d399346 100644
--- a/core/modules/options/tests/options_test/options_test.module
+++ b/core/modules/options/tests/options_test/options_test.module
@@ -9,7 +9,7 @@
 use Drupal\Core\Field\FieldStorageDefinitionInterface;
 
 /**
- * Implements callback_allowed_values_function().
+ * Allowed values callback.
  *
  * @see options_allowed_values().
  */
@@ -31,7 +31,7 @@ function options_test_allowed_values_callback(FieldStorageDefinitionInterface $d
 }
 
 /**
- * Implements callback_allowed_values_function().
+ * An entity-bound allowed values callback.
  *
  * @todo This function violates the recommendation in options_allowed_values()
  *   to return a list of all possible values in any context when $items is
-- 
GitLab