You are here

function file_entity_metadata_form_file in File Entity (fieldable files) 7.3

Same name and namespace in other branches
  1. 7.2 file_entity.module \file_entity_metadata_form_file()

Entity API callback to get the form of a file entity.

1 string reference to 'file_entity_metadata_form_file'
file_entity_entity_info_alter in ./file_entity.module
Implements hook_entity_info_alter().

File

./file_entity.module, line 1072
Extends Drupal file entities to be fieldable and viewable.

Code

function file_entity_metadata_form_file($file) {

  // Pre-populate the form-state with the right form include.
  $form_state['build_info']['args'] = array(
    $file,
  );
  form_load_include($form_state, 'inc', 'file_entity', 'file_entity.pages');
  return drupal_build_form('file_entity_edit', $form_state);
}