You are here

function mediafront_filefield_get in MediaFront 6

Same name and namespace in other branches
  1. 6.2 includes/mediafront.filefield.inc \mediafront_filefield_get()
  2. 7 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_content_field_edit_form_alter in includes/mediafront.filefield.inc
Implementation of hook_form_FORM_ID_alter().
mediafront_playlist_node in ./mediafront.module
Implementation of hook_playlist_node()

File

includes/mediafront.filefield.inc, line 32

Code

function mediafront_filefield_get($node_type, $field_name) {
  $sql = "SELECT * FROM {mediafront_filefield} WHERE node_type='%s' AND field_name='%s'";
  return db_fetch_object(db_query($sql, $node_type, $field_name));
}