You are here

function emapi_media_load in Embedded Media Field 6.3

Load a single media object.

Parameters

integer $emid: The unique ID for the media.

Return value

mixed Either the desired media object, or NULL if not found.

1 call to emapi_media_load()
emapi_media_delete in emapi/emapi.module
Delete a media object from the database.

File

emapi/emapi.module, line 337
Provides an API for parsing, storage, and display of third party media.

Code

function emapi_media_load($emid) {
  $media = emapi_media_load_multiple(array(
    $emid,
  ));
  return $media[$emid];
}