function tablefield_field_formatter_info in TableField 7.2
Same name and namespace in other branches
- 6 tablefield.module \tablefield_field_formatter_info()
- 7.3 tablefield.module \tablefield_field_formatter_info()
- 7 tablefield.module \tablefield_field_formatter_info()
Implements hook_field_formatter_info().
File
- ./tablefield.module, line 399 
- 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,
        'hide_header' => FALSE,
        'hide_empty_rows' => FALSE,
        'hide_empty_cols' => FALSE,
        'hide_cols_skip_head' => FALSE,
        'trim_trailing_cols' => FALSE,
        'trim_trailing_rows' => FALSE,
        'export_csv' => FALSE,
      ),
    ),
    'format_raw' => array(
      'label' => t('Raw data (JSON)'),
      'field types' => array(
        'tablefield',
      ),
      'settings' => array(
        'usearraykeys' => 'No',
        'vertheader' => FALSE,
        'tabledataonly' => FALSE,
      ),
    ),
  );
}