1 file.inc file_load_multiple($fids = array(), $conditions = array())

Loads file entities from the database.

Parameters

$fids: An array of file IDs.

$conditions: (deprecated) An associative array of conditions on the {file_managed} table, where the keys are the database fields and the values are the values those fields must have. Instead, it is preferable to use EntityFieldQuery to retrieve a list of entity IDs loadable by this function.

Return value

File[] An array of file entities, indexed by fid.

See also

hook_file_load()

file_load()

entity_load()

EntityFieldQuery

Related topics

File

core/includes/file.inc, line 595
API for handling file uploads and server file management.

Code

function file_load_multiple($fids = array(), $conditions = array()) {
  return entity_load('file', $fids, $conditions);
}