You are here

function mediafront_filefield_delete in MediaFront 7

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

Deletes a mediafront filefield entry

1 call to mediafront_filefield_delete()
mediafront_field_delete_instance in includes/mediafront.filefield.inc

File

includes/mediafront.filefield.inc, line 26

Code

function mediafront_filefield_delete($entity, $bundle, $field_name) {
  db_delete('mediafront_filefield')
    ->condition('entity', $entity)
    ->condition('bundle', $bundle)
    ->condition('field_name', $field_name)
    ->execute();
}