file_load_multiple

Versions
7
file_load_multiple($fids = array(), $conditions = array())

Load file objects from the database.

See also

hook_file_load()

@see file_load()

Parameters

$fids An array of file IDs.

$conditions An array of conditions to match against the {files} table. These should be supplied in the form array('field_name' => 'field_value').

Return value

An array of file objects, indexed by fid.

Related topics

▾ 10 functions call file_load_multiple()

file_copy in includes/file.inc
Copy a file to a new location and adds a file record to the database.
file_field_load in modules/file/file.field.inc
Implement hook_field_load().
file_file_download in modules/file/file.module
Implement hook_file_download().
file_load in includes/file.inc
Load a file object from the database.
file_move in includes/file.inc
Move a file to a new location and update the file's database entry.
file_save_data in includes/file.inc
Save a string to the specified destination and create a database file entry.
file_save_upload in includes/file.inc
Saves a file upload to a new location.
image_file_download in modules/image/image.module
Implement hook_file_download().
upload_node_load in modules/upload/upload.module
Implement hook_node_load().
user_update_7004 in modules/user/user.install
Add the user's pictures to the {file} table and make them managed files.

Code

includes/file.inc, line 445

<?php
function file_load_multiple($fids = array(), $conditions = array()) {
  return entity_load('file', $fids, $conditions);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.