summaryrefslogtreecommitdiff
path: root/modules/field/field.api.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-09-30 12:26:36 +0000
committerDries Buytaert <dries@buytaert.net>2009-09-30 12:26:36 +0000
commit57090c33da0e007e6569106c92ce5b3cd3745bf7 (patch)
tree27a5d8d340c64fad5029cae852e8628c6e778c76 /modules/field/field.api.php
parent4d99a96690ba8ffbf20398d683ed3c040c167722 (diff)
downloadbrdo-57090c33da0e007e6569106c92ce5b3cd3745bf7.tar.gz
brdo-57090c33da0e007e6569106c92ce5b3cd3745bf7.tar.bz2
- Patch #367013 by bjaspan, yched: clean ups for field_update_field().
Diffstat (limited to 'modules/field/field.api.php')
-rw-r--r--modules/field/field.api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/field/field.api.php b/modules/field/field.api.php
index 380444af1..86c8da924 100644
--- a/modules/field/field.api.php
+++ b/modules/field/field.api.php
@@ -1315,7 +1315,7 @@ function hook_field_create_instance($instance) {
* @param $has_data
* Whether any data already exists for this field.
* @return
- * Throws a FieldException to prevent the update from occuring.
+ * Throws a FieldUpdateForbiddenException to prevent the update from occuring.
*/
function hook_field_update_field_forbid($field, $prior_field, $has_data) {
// A 'list' field stores integer keys mapped to display values. If
@@ -1328,7 +1328,7 @@ function hook_field_update_field_forbid($field, $prior_field, $has_data) {
// If any data exist for those keys, forbid the update.
$count = field_attach_query($prior_field['id'], array('value', $lost_keys, 'IN'), 1);
if ($count > 0) {
- throw new FieldException("Cannot update a list field not to include keys with existing data");
+ throw new FieldUpdateForbiddenException("Cannot update a list field not to include keys with existing data");
}
}
}