Example how to use tableselect with #options

Categories

Component ID

2286657

Component name

Example how to use tableselect with #options

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module is an example module based on the fabulous guide Adding checkboxes to a table

@Credit: mexicoder, ronan.orb, drupalshrek, nohup,Zahor

Purpose of the module

How to use tableselect with the following:

  • '#multiple' FALSE
  • tableselect with radio buttons
  • How to set #default_value
  • How to put them in a custom block

Tableselect with options

Download

$ git clone http://git.drupal.org/sandbox/alamp/2286657.git
$ cp -a 2286657/example_table_radio sites/all/modules/example_table_radio