From ca435ae9d87d240de8c6fa49c50eb24ea4916dac Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Wed, 24 Mar 2010 07:58:07 +0000
Subject: [PATCH] - Patch #686596 by dhthwy: child before parent class
 definition order breaks some opcode cachers.

---
 modules/field/field.module | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/modules/field/field.module b/modules/field/field.module
index 5370838dba06..2505c0fc2871 100644
--- a/modules/field/field.module
+++ b/modules/field/field.module
@@ -5,6 +5,14 @@
  * Attach custom data fields to Drupal entities.
  */
 
+/**
+ * Base class for all exceptions thrown by Field API functions.
+ *
+ * This class has no functionality of its own other than allowing all
+ * Field API exceptions to be caught by a single catch block.
+ */
+class FieldException extends Exception {}
+
 /*
  * Load all public Field API functions. Drupal currently has no
  * mechanism for auto-loading core APIs, so we have to load them on
@@ -115,14 +123,6 @@
  * @} End of "Field query flags".
  */
 
-/**
- * Base class for all exceptions thrown by Field API functions.
- *
- * This class has no functionality of its own other than allowing all
- * Field API exceptions to be caught by a single catch block.
- */
-class FieldException extends Exception {}
-
 /**
  * Exception class thrown by hook_field_update_forbid().
  */
-- 
GitLab