Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443915
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3443915
Commits
b54ff2c8
Commit
b54ff2c8
authored
14 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#702816
by yched, tstoeckler: mention of content types when it should be bundles.
parent
242c47de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/field_ui/field_ui.admin.inc
+6
-4
6 additions, 4 deletions
modules/field_ui/field_ui.admin.inc
with
6 additions
and
4 deletions
modules/field_ui/field_ui.admin.inc
+
6
−
4
View file @
b54ff2c8
...
...
@@ -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 typ
e.
* Menu callback; present a form for removing a field
instance from a bundl
e.
*/
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'
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment