Here's the lock functionality seen in #1051030: CSS improvements. I think the functionality is pretty self-explanatory.
This patch requires that CSS patch to be applied first.

I need this functionality for a D7 / Drupal Commerce contrib module which would depend on tablefield.
I've just noticed that the text "Leave the first row blank if you do not need a header." is kinda pointless if the header is locked, but that's a minor detail.

CommentFileSizeAuthor
#1 lock.patch3.1 KBbojanz
lock.patch3.08 KBbojanz

Comments

bojanz’s picture

StatusFileSize
new3.1 KB

Updated patch (the previous one disabled the editing of default values even on field edit, and that's wrong).
This one should be fine.

kevin hankens’s picture

Status: Needs review » Closed (fixed)

Awesome, I really like this feature. I'm about to commit it along with a bug fix: #1051568: Default value in field settings isn't rebuildable.

BTW, #1051030: CSS improvements is obviously included in the patch above.

Thanks for this!