summaryrefslogtreecommitdiff
path: root/modules/field_ui
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-06-25 19:31:07 +0000
committerDries Buytaert <dries@buytaert.net>2010-06-25 19:31:07 +0000
commitb54ff2c810b7bf9bc5240e8def48d9f4abd58466 (patch)
tree5545166183f9a08f68231f64a11817c96333c075 /modules/field_ui
parent242c47de38999b075fdb66c0d8825bf5e6fcfdbd (diff)
downloadbrdo-b54ff2c810b7bf9bc5240e8def48d9f4abd58466.tar.gz
brdo-b54ff2c810b7bf9bc5240e8def48d9f4abd58466.tar.bz2
- Patch #702816 by yched, tstoeckler: mention of content types when it should be bundles.
Diffstat (limited to 'modules/field_ui')
-rw-r--r--modules/field_ui/field_ui.admin.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/field_ui/field_ui.admin.inc b/modules/field_ui/field_ui.admin.inc
index 49f42483f..064770b9b 100644
--- a/modules/field_ui/field_ui.admin.inc
+++ b/modules/field_ui/field_ui.admin.inc
@@ -31,7 +31,7 @@ function field_ui_fields_list() {
$rows[$field_name]['data'][2] = implode(', ', $cell['data'][2]);
}
if (empty($rows)) {
- $output = t('No fields have been defined for any content type yet.');
+ $output = t('No fields have been defined yet.');
}
else {
// Sort rows by field name.
@@ -432,7 +432,7 @@ function _field_ui_field_overview_form_validate_add_new($form, &$form_state) {
*/
function _field_ui_field_overview_form_validate_add_existing($form, &$form_state) {
// The form element might be absent if no existing fields can be added to
- // this content type
+ // this bundle.
if (isset($form_state['values']['_add_existing_field'])) {
$field = $form_state['values']['_add_existing_field'];
@@ -1077,7 +1077,7 @@ function field_ui_widget_type_form_submit($form, &$form_state) {
}
/**
- * Menu callback; present a form for removing a field from a content type.
+ * Menu callback; present a form for removing a field instance from a bundle.
*/
function field_ui_field_delete_form($form, &$form_state, $instance) {
$bundle = $instance['bundle'];
@@ -1107,7 +1107,9 @@ function field_ui_field_delete_form($form, &$form_state, $instance) {
}
/**
- * Remove a field from a content type.
+ * Removes a field instance from a bundle.
+ *
+ * If the field has no more instances, it will be marked as deleted too.
*/
function field_ui_field_delete_form_submit($form, &$form_state) {
$form_values = $form_state['values'];