function _emfield_emfield_field_settings in Embedded Media Field 6.3
Same name in this branch
- 6.3 emfield.cck.inc \_emfield_emfield_field_settings()
- 6.3 deprecated/emfield-deprecated.cck.inc \_emfield_emfield_field_settings()
Same name and namespace in other branches
- 6 emfield.cck.inc \_emfield_emfield_field_settings()
- 6.2 emfield.cck.inc \_emfield_emfield_field_settings()
1 call to _emfield_emfield_field_settings()
- emfield_emfield_field_settings in deprecated/
emfield-deprecated.inc - Helper function for hook_field_settings().
File
- deprecated/
emfield-deprecated.cck.inc, line 263 - Helper functions to implement our various cck-required functions, such as hook_field and hook_widget.
Code
function _emfield_emfield_field_settings($op, $field) {
switch ($op) {
case 'views data':
$table_alias = content_views_tablename($field);
$data = content_views_field_views_data($field);
// Add provider views support.
$field_provider = $field['field_name'] . '_provider';
$data[$table_alias][$field_provider] = $data[$table_alias][$field['field_name'] . '_embed'];
$data[$table_alias][$field_provider]['title'] .= t(' - Provider');
$data[$table_alias][$field_provider]['field']['title'] = $data[$table_alias][$field_provider]['title'];
$data[$table_alias][$field_provider]['title short'] = t('Provider');
$data[$table_alias][$field_provider]['field']['title short'] = $data[$table_alias][$field_provider]['title short'];
$data[$table_alias][$field_provider]['field']['field'] = $field_provider;
$data[$table_alias][$field_provider]['field']['handler'] = 'emfield_handler_field_provider';
$data[$table_alias][$field_provider]['argument']['field'] = $field_provider;
$data[$table_alias][$field_provider]['argument']['handler'] = 'emfield_handler_argument_provider';
$data[$table_alias][$field_provider]['filter']['field'] = $field_provider;
$data[$table_alias][$field_provider]['sort']['field'] = $field_provider;
// Add status views support.
$field_status = $field['field_name'] . '_status';
$data[$table_alias][$field_status] = $data[$table_alias][$field['field_name'] . '_embed'];
$data[$table_alias][$field_status]['title'] .= t(' - Status');
$data[$table_alias][$field_status]['field']['title'] = $data[$table_alias][$field_status]['title'];
$data[$table_alias][$field_status]['title short'] = t('Status');
$data[$table_alias][$field_status]['field']['title short'] = $data[$table_alias][$field_status]['title short'];
$data[$table_alias][$field_status]['field']['field'] = $field_status;
$data[$table_alias][$field_status]['field']['handler'] = 'emfield_handler_field_status';
$data[$table_alias][$field_status]['argument']['field'] = $field_status;
$data[$table_alias][$field_status]['argument']['handler'] = 'content_handler_argument_number';
$data[$table_alias][$field_status]['filter']['field'] = $field_status;
$data[$table_alias][$field_status]['sort']['field'] = $field_status;
return $data;
case 'database columns':
return emfield_field_columns($field);
}
}