function imceimage_field_settings in Imce CCK Image 6
Same name and namespace in other branches
- 6.2 imceimage.module \imceimage_field_settings()
hook_field_settings()
File
- ./
imceimage.module, line 61
Code
function imceimage_field_settings($op, $field) {
switch ($op) {
case 'form':
$form = array();
return $form;
case 'save':
return 'imceimage_file_types';
case 'database columns':
$columns = array(
'imceimage_path' => array(
'type' => 'char',
'length' => 255,
'not null' => FALSE,
'default' => "",
),
'imceimage_width' => array(
'type' => 'int',
'not null' => TRUE,
'default' => "0",
),
'imceimage_height' => array(
'type' => 'int',
'not null' => TRUE,
'default' => "0",
),
'imceimage_alt' => array(
'type' => 'text',
),
'imceimage_title' => array(
'type' => 'text',
),
);
return $columns;
}
}