You are here

function mediafront_field_prepare_view in MediaFront 7

Implements hook_field_prepare_view()

File

includes/mediafront.field.inc, line 108

Code

function mediafront_field_prepare_view($entity_type, $entities, $field, $instances, $langcode, &$items) {

  // Add a bogus item to the media players.
  foreach ($entities as $id => $entity) {
    $items[$id][0] = array(
      'name' => 'mediaplayer',
    );
  }
}