I have a task to hide some form elements of field_collection. I do it via setting #access attribute to FALSE and form element got hidden, but still we have column of this element. I think column should be removed as well.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ygerasimov’s picture

Please review attached patch.

ygerasimov’s picture

Status: Active » Needs review
Cauliflower’s picture

Title: Respect #access form attribute. » Respect #access form attribute (hide empty columns in form widget)
Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
FileSize
2 KB

Re-applied patch to latest dev version. Tested and it works :-)

kevineinarsson’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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