summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-24 07:58:07 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-24 07:58:07 +0000
commitca435ae9d87d240de8c6fa49c50eb24ea4916dac (patch)
tree7cbd6149fd64bc493ba4dc5535cf9876c440c20b /modules
parentf1c248053761eca7f142f09fdd270195f46b0ac9 (diff)
downloadbrdo-ca435ae9d87d240de8c6fa49c50eb24ea4916dac.tar.gz
brdo-ca435ae9d87d240de8c6fa49c50eb24ea4916dac.tar.bz2
- Patch #686596 by dhthwy: child before parent class definition order breaks some opcode cachers.
Diffstat (limited to 'modules')
-rw-r--r--modules/field/field.module16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/field/field.module b/modules/field/field.module
index 5370838db..2505c0fc2 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
@@ -116,14 +124,6 @@ define('FIELD_QUERY_COMPLETE', 'FIELD_QUERY_COMPLETE');
*/
/**
- * 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().
*/
class FieldUpdateForbiddenException extends FieldException {}