You are here

geshifield.install in GeSHi Filter for syntax highlighting 8.2

Install and unistall related function for the GeSHi Field module.

File

geshifield/geshifield.install
View source
<?php

/**
 * @file
 * Install and unistall related function for the GeSHi Field module.
 */

/**
 * Implements hook_field_schema().
 */
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,
      ],
    ],
  ];
}

Functions

Namesort descending Description
geshifield_field_schema Implements hook_field_schema().