function filefield_field_settings in FileField 5
Same name and namespace in other branches
- 5.2 filefield.module \filefield_field_settings()
- 6.3 filefield.module \filefield_field_settings()
- 6.2 filefield.module \filefield_field_settings()
Implementation of hook_field_settings().
File
- ./
filefield.module, line 63 - Defines a file field type.
Code
function filefield_field_settings($op, $field) {
switch ($op) {
case 'form':
$form = array();
return $form;
case 'validate':
break;
case 'save':
return array();
case 'database columns':
$columns = array(
'fid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => '0',
),
'description' => array(
'type' => 'varchar',
length => 255,
'not null' => TRUE,
'default' => "''",
'sortable' => TRUE,
),
'list' => array(
'type' => 'int',
'not null' => TRUE,
'default' => '0',
),
);
return $columns;
}
}