You are here

function tablefield_field_formatter_info in TableField 7.3

Same name and namespace in other branches
  1. 6 tablefield.module \tablefield_field_formatter_info()
  2. 7 tablefield.module \tablefield_field_formatter_info()
  3. 7.2 tablefield.module \tablefield_field_formatter_info()

Implements hook_field_formatter_info().

File

./tablefield.module, line 600
Provides a set of fields that can be used to store tabular data with a node.

Code

function tablefield_field_formatter_info() {
  return array(
    'tablefield_default' => array(
      'label' => t('Tabular view'),
      'field types' => array(
        'tablefield',
      ),
      'settings' => array(
        'sticky_header' => TRUE,
        'striping' => TRUE,
        'sortable' => FALSE,
        'hide_header' => FALSE,
        'hide_empty_rows' => FALSE,
        'hide_empty_cols' => FALSE,
        'hide_cols_skip_head' => FALSE,
        'trim_trailing_cols' => FALSE,
        'trim_trailing_rows' => FALSE,
        'table_custom_class_attributes' => 'table',
        'export_csv' => FALSE,
      ),
    ),
    'format_raw' => array(
      'label' => t('Raw data (JSON or XML)'),
      'field types' => array(
        'tablefield',
      ),
      'settings' => array(
        'tabledatakey' => 'tabledata',
        'usearraykeys' => 'No',
        'rowkey' => FALSE,
        'vertheader' => FALSE,
        'tabledataonly' => TRUE,
        'numeric_check' => TRUE,
        'xml' => FALSE,
        'xml_safe' => 'cdata',
      ),
    ),
  );
}