function sheetnode_field_settings in Sheetnode 6
Same name and namespace in other branches
- 5 sheetnode.module \sheetnode_field_settings()
Implementation of hook_field_settings().
File
- ./
sheetnode.module, line 660
Code
function sheetnode_field_settings($op, $field) {
switch ($op) {
case 'database columns':
require_once drupal_get_path('module', 'sheetnode') . '/sheetnode.install';
$schema = sheetnode_schema();
$columns['value'] = $schema['sheetnode']['fields']['value'];
$columns['value']['not null'] = FALSE;
$columns['name'] = array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
);
return $columns;
}
}