You are here

function table_element_element_info in Table Element 7

Implements hook_element_info().

File

./table_element.module, line 15
Provides a table element for Drupal 7.

Code

function table_element_element_info() {
  $types = array();
  $types['table'] = array(
    '#header' => array(),
    '#rows' => array(),
    '#empty' => '',
    '#input' => TRUE,
    '#tree' => TRUE,
    '#tableselect' => FALSE,
    '#multiple' => TRUE,
    '#js_select' => TRUE,
    '#theme' => 'table',
    '#process' => array(
      'table_element_process_table',
    ),
    '#element_validate' => array(
      'table_element_validate_table',
    ),
    '#pre_render' => array(
      'table_element_pre_render_table',
    ),
    '#value_callback' => 'table_element_table_value',
  );
  return $types;
}