function media_library_views_data in Media Library 7
Implements hook_views_data().
File
- ./
media_library.views.inc, line 13 - Provide views data and handlers for media_library.module.
Code
function media_library_views_data() {
// published status
$data['file_managed']['library'] = array(
'title' => t('Library'),
'help' => t('Whether or not the file is in the media library.'),
'field' => array(
'handler' => 'views_handler_field_boolean',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_boolean_operator',
'label' => t('Library'),
'type' => 'yes-no',
'use equal' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
return $data;
}