function geshifield_field_settings in GeSHi Filter for syntax highlighting 6
Implementation of hook_field_settings().
File
- geshifield/
geshifield.module, line 47 - Defines a CCK field for source code with GeSHi syntax highlighting.
Code
function geshifield_field_settings($op, $field) {
switch ($op) {
case 'database columns':
$columns = array(
'sourcecode' => array(
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
'sortable' => TRUE,
'views' => TRUE,
),
'language' => array(
'type' => 'varchar',
'length' => 32,
'not null' => FALSE,
'sortable' => TRUE,
'views' => TRUE,
),
);
return $columns;
}
}