You are here

public static function video_utility::loadEntity in Video 7.2

Retrieve a single entity

4 calls to video_utility::loadEntity()
TranscoderAbstractionFactoryZencoder::processPostback in transcoders/TranscoderAbstractionFactoryZencoder.inc
Process postback jobs
video_cron in ./video.module
Implements hook_cron().
video_file_download in ./video.module
Implements hook_file_download().
video_file_embed in ./video.pages.inc
Menu callback : video/embed

File

./video.utility.inc, line 17
This file will be used to keep all utility functions data structures.

Class

video_utility
Helper functions for the Video module.

Code

public static function loadEntity($type, $id) {
  $entities = entity_load($type, array(
    $id,
  ));
  if (empty($entities)) {
    return NULL;
  }
  return reset($entities);
}