This module didn't have functionality to insert columns in middle of other columns, or delete them. Now it has!

Patch attached. Enjoy & review.

Comments

rudins created an issue. See original summary.

rudins’s picture

StatusFileSize
new7.18 KB
lolandese’s picture

Status: Needs review » Needs work
StatusFileSize
new218.46 KB
new241.03 KB

On a clean Drupal install and with any admin theme all the table cells get emptied when inserting or deleting columns (see screenshots).

Screenshot

Clicking column insert results in:

Screenshot

lolandese’s picture

I guess some code can be borrowed from https://www.drupal.org/project/tablefield_extended.

EDIT:
Correction: The mentioned module does not insert rows/columns but only adds them. The same can already be accomplished by the Rebuild functionality in the current TableField module. That functionality seems only been tweaked to be offered through buttons instead of a number of rows and columns.

Furthermore:

  • it misses out on many features the TableField module offers
  • does not have a dependency on the TableField module. It is a duplication of existing (old) code of the TableField module instead of extending the latest version of it. The module name 'TableField Extended' seems to be inappropriate.

Not sure how that module did pass the review process. Probably it is due to the high workload on the admins there in combination with this review.

lolandese’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev
sri@re’s picture

Hi can we get insert or delete options for row also ?

liam morland’s picture

Status: Needs work » Closed (outdated)

Drupal 7 is no longer supported. If this applies to a supported version, please re-open.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.