You are here

function media_multi_load in D7 Media 7

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

./media.module, line 573
Media API

Code

function media_multi_load($fids) {
  return file_load_multiple(explode(" ", $fids));
}