function flickrfield_field_settings in Flickr 5
Same name and namespace in other branches
- 6 field/flickrfield.module \flickrfield_field_settings()
Implementation of hook_field_settings().
File
- field/
flickrfield.module, line 41 - Defines a Flickr field type.
Code
function flickrfield_field_settings($op, $field) {
switch ($op) {
case 'database columns':
$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,
),
);
return $columns;
case 'filters':
// This will provide a Views filter by photo or photoset id.
return array(
'default' => array(
'operator' => 'views_handler_operator_like',
'handler' => 'views_handler_filter_like',
),
);
break;
}
}