You are here

function mediafront_filefield_get in MediaFront 7

Same name and namespace in other branches
  1. 6.2 includes/mediafront.filefield.inc \mediafront_filefield_get()
  2. 6 includes/mediafront.filefield.inc \mediafront_filefield_get()

Returns a mediafront filefield entry.

3 calls to mediafront_filefield_get()
mediafront_filefield_save in includes/mediafront.filefield.inc
Adds or updates a mediafront filefield entry
mediafront_form_field_ui_field_edit_form_alter in includes/mediafront.filefield.inc
Implementation of hook_form_FORM_ID_alter().
mediafront_playlist_node in ./mediafront.module
Implements hook_playlist_node()

File

includes/mediafront.filefield.inc, line 37

Code

function mediafront_filefield_get($entity, $bundle, $field_name) {
  return db_select('mediafront_filefield', 'f')
    ->fields('f')
    ->condition('f.entity', $entity)
    ->condition('f.bundle', $bundle)
    ->condition('f.field_name', $field_name)
    ->execute()
    ->fetchObject();
}