You are here

function file_display_new in D7 Media 7

Creates a new {file_display} object.

1 call to file_display_new()
file_entity_file_display_form_submit in file_entity/file_entity.admin.inc
Process file display settings form submissions.

File

file_entity/file_entity.file_api.inc, line 367
API extensions of Drupal core's file.inc.

Code

function file_display_new($file_type, $view_mode, $formatter_name) {
  ctools_include('export');
  $display = ctools_export_crud_new('file_display');
  $display->name = implode('__', array(
    $file_type,
    $view_mode,
    $formatter_name,
  ));
  return $display;
}