You are here

function mediafront_field_formatter_settings_form in MediaFront 7.2

Implements hook_field_formatter_settings_form

File

includes/mediafront.field.inc, line 45

Code

function mediafront_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state, $type = 'mediafront_player') {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $element = array();
  if ($display['type'] == $type) {
    $element['preset'] = mediafront_preset_select_form($settings, 'preset');
  }
  return $element;
}