Steps to reproduce:
1. Enable a module like Panelizer, Meta tags, or Redirect that adds its form elements to entities using hook_field_attach_form().
2. Edit a field API field like a taxonomy term on node.

Expected results:
Form should only show the field itself

Actual results:

CommentFileSizeAuthor
#3 fape-n1743712-3.patch722 bytesdamienmckenna

Comments

wim leers’s picture

Project: Edit » Field API Pane Editor (FAPE)

Thanks for reporting! This is actually a bug in FAPE then, because we're just using FAPE for this part of the functionality.

@merlinofchaos: this is not by design, is it?

wim leers’s picture

This is not actually a bug in FAPE, it's a deficiency of Drupal 7 core.

From #1935676-6: Redirect module compatibility: its form items are visible while doing in-place editing (i.e. when looking at per-field form):

The Redirect module uses hook_field_attach_form() to insert its form item. It does this because there's no way to alter all different entity types' forms in Drupal 7 (also not yet in Drupal 8, FWIW). It's technically wrong, but they also don't have a choice. So, I'm adding a similar work-around as the one that was added for the Metatag module.

In Drupal 8, this will hopefully be solved by Entity API in core.

damienmckenna’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new722 bytes

This is how I handle it in the FATE module, what do you think?

damienmckenna’s picture

Status: Needs review » Fixed

Committed.

  • Commit 49172d3 on 7.x-1.x by DamienMcKenna:
    Issue #1743712 by DamienMcKenna: Don't show field groups or the fields...
damienmckenna’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.