function content_views_field_arguments in Content Construction Kit (CCK) 5
3 calls to content_views_field_arguments()
- content_views_arguments in ./
content_views.inc - Implementation of hook_views_arguments().
- hook_field_settings in ./
field.php - Handle the parameters for a field.
- text_field_settings in ./
text.module - Implementation of hook_field_settings().
File
- ./
content_views.inc, line 229 - Interface between content.module and views.module.
Code
function content_views_field_arguments($field) {
$field_types = _content_field_types();
$db_info = content_database_info($field);
if (count($db_info['columns'])) {
$argument = array();
$argument['name'] = $field_types[$field['type']]['label'] . ': ' . $field['widget']['label'] . ' (' . $field['field_name'] . ')';
$argument['handler'] = 'content_views_argument_handler';
return array(
'content: ' . $field['field_name'] => $argument,
);
}
}