You are here

function mediafront_filefield_get_default in MediaFront 6

Same name and namespace in other branches
  1. 6.2 includes/mediafront.filefield.inc \mediafront_filefield_get_default()
1 call to mediafront_filefield_get_default()
mediafront_form_content_field_edit_form_alter in includes/mediafront.filefield.inc
Implementation of hook_form_FORM_ID_alter().

File

includes/mediafront.filefield.inc, line 37

Code

function mediafront_filefield_get_default($field, $field_name, $presets) {
  return $field && isset($presets[$field->{$field_name}]) ? $presets[$field->{$field_name}] : ($field->{$field_name} ? $field->{$field_name} : "mediafront_original");
}