function flickrfield_field_settings in Flickr 6
Same name and namespace in other branches
- 5 field/flickrfield.module \flickrfield_field_settings()
Implements hook_field_settings().
File
- field/
flickrfield.module, line 50 - Defines a Flickr field type.
Code
function flickrfield_field_settings($op, $field) {
switch ($op) {
case 'database columns':
if ($field['type'] == 'flickrfield') {
$columns = array(
'id' => array(
'type' => 'varchar',
'length' => 64,
'not null' => FALSE,
'sortable' => TRUE,
),
'type' => array(
'type' => 'varchar',
'length' => 10,
'not null' => FALSE,
'sortable' => TRUE,
),
'nsid' => array(
'type' => 'varchar',
'length' => 64,
'not null' => FALSE,
'sortable' => TRUE,
),
);
}
elseif ($field['type'] == 'flickrfield_photoset') {
$columns = array(
'flickrid' => array(
'type' => 'varchar',
'length' => 64,
'not null' => FALSE,
'sortable' => TRUE,
),
);
}
return $columns;
}
}