Commit f37242fa authored by Dries's avatar Dries
Browse files

- Patch #707724 by Pasqualle: fixed confusing arguments.

parent 4917b2ad
......@@ -781,10 +781,10 @@ function field_ui_existing_field_options($entity_type, $bundle) {
$options = array();
$field_types = field_info_field_types();
foreach (field_info_instances() as $existing_obj_type => $bundles) {
foreach (field_info_instances() as $existing_entity_type => $bundles) {
foreach ($bundles as $existing_bundle => $instances) {
// No need to look in the current bundle.
if (!($existing_bundle == $bundle && $existing_obj_type == $entity_type)) {
if (!($existing_bundle == $bundle && $existing_entity_type == $entity_type)) {
foreach ($instances as $instance) {
$field = field_info_field($instance['field_name']);
// Don't show
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment