function hook_handle_uploaded_file

3.x tripal.importer.api.inc hook_handle_uploaded_file($file, $type)

Implements hook_handle_uplaoded_file().

This is a Tripal hook that allows the module to set the proper parameters for a file uploaded via the Tripal HTML5 uploader.

Parameters

$file: The Drupal file object of the newly uploaded file.

$type: The category or type of file.

Return value

A Drupal managed file ID.

Related topics

File

tripal/api/tripal.importer.api.inc, line 36
Provides an application programming interface (API) for working with data file importers using the TripalImporter class.

Code

function hook_handle_uploaded_file($file, $type) {

}