You are here

function geshifield_field_schema in GeSHi Filter for syntax highlighting 8

Same name and namespace in other branches
  1. 8.2 geshifield/geshifield.install \geshifield_field_schema()
  2. 7 geshifield/geshifield.install \geshifield_field_schema()

Implements hook_field_schema().

File

geshifield/geshifield.install, line 11
Install and unistall related function for the GeSHi Field module.

Code

function geshifield_field_schema($field) {
  return [
    'columns' => [
      'sourcecode' => [
        'type' => 'text',
        'size' => 'big',
        'not null' => FALSE,
        'sortable' => TRUE,
      ],
      'language' => [
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
        'sortable' => TRUE,
      ],
    ],
  ];
}