You are here

scald_file.views.inc in Scald File Provider 7

Adds filesize field to views.

File

includes/scald_file.views.inc
View source
<?php

/**
 * @file
 * Adds filesize field to views.
 */

/**
 * Implements hook_views_data().
 */
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;
}

Functions

Namesort descending Description
scald_file_views_data Implements hook_views_data().