function fancy_file_delete_views_data in Fancy File Delete 8
Same name and namespace in other branches
- 7 views/fancy_file_delete.views.inc \fancy_file_delete_views_data()
Implement hook_views_data().
File
- ./
fancy_file_delete.views.inc, line 10 - Fancy File Delete Views Settings.
Code
function fancy_file_delete_views_data() {
$data = array();
$data['unmanaged_files']['table']['group'] = t('Unmanaged Files');
$data['unmanaged_files']['table']['base'] = array(
'field' => 'unfid',
'title' => t('Unmanaged Files'),
'help' => t('Unmanaged Files from the Fancy File Delete Module'),
);
$data['unmanaged_files']['unfid'] = array(
'title' => t('File id'),
'help' => t('The id of the file.'),
'field' => array(
'handler' => 'views_handler_field_file',
'click sortable' => TRUE,
),
'argument' => array(
'handler' => 'views_handler_argument_file_fid',
'numeric' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
$data['unmanaged_files']['path'] = array(
'title' => t('Unmanaged Files Path'),
'help' => t('Unmanaged Files Path.'),
'field' => array(
'handler' => 'views_handler_field',
'click sortable' => TRUE,
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
$data['unmanaged_files']['table']['join'] = array(
'unmanaged_files' => array(
'field' => 'unfid',
'left_field' => 'unfid',
),
);
return $data;
}