You are here

function media_bulk_upload_multi_load in D7 Media 7.4

Same name and namespace in other branches
  1. 7.2 modules/media_bulk_upload/media_bulk_upload.module \media_bulk_upload_multi_load()
  2. 7.3 modules/media_bulk_upload/media_bulk_upload.module \media_bulk_upload_multi_load()

Load callback for %media_multi placeholder in menu paths.

Parameters

string $fids: Separated by space (e.g., "3 6 12 99"). This often appears as "+" within URLs (e.g., "3+6+12+99"), but Drupal automatically decodes paths when intializing $_GET['q'].

Return value

array An array of corresponding file entities.

File

modules/media_bulk_upload/media_bulk_upload.module, line 237
Primarily Drupal hooks.

Code

function media_bulk_upload_multi_load($fids) {
  return file_load_multiple(explode(' ', $fids));
}