function file_load_multiple
file_load_multiple($fids = array(), $conditions = array())
Loads file objects from the database.
@todo Remove $conditions in Drupal 8.
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
An array of file objects, indexed by fid.
See also
Related topics
File
- includes/file.inc, line 564
- API for handling file uploads and server file management.
Code
function file_load_multiple($fids = array(), $conditions = array()) { return entity_load('file', $fids, $conditions); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!file.inc/function/file_load_multiple/7.x