geshifield.install in GeSHi Filter for syntax highlighting 8
Same filename and directory in other branches
Install and unistall related function for the GeSHi Field module.
File
geshifield/geshifield.installView 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
Name | Description |
---|---|
geshifield_field_schema | Implements hook_field_schema(). |