You are here

function scald_file_views_data in Scald File Provider 7

Implements hook_views_data().

File

includes/scald_file.views.inc, line 10
Adds filesize field to views.

Code

function scald_file_views_data() {
  $data = array();
  $data['scald_atoms']['filesize'] = array(
    'real field' => 'base_id',
    'title' => t('Filesize'),
    'help' => t("Formatted filesize of the file in the atom. This will only work with atoms that use the base id for storing file id."),
    'field' => array(
      'handler' => 'scald_file_views_handler_field_filesize',
      'click sortable' => FALSE,
    ),
  );
  return $data;
}