You are here

function mediafront_filefield_submit in MediaFront 7

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

Called when the user submits the FileField form.

1 string reference to 'mediafront_filefield_submit'
mediafront_form_field_ui_field_edit_form_alter in includes/mediafront.filefield.inc
Implementation of hook_form_FORM_ID_alter().

File

includes/mediafront.filefield.inc, line 148

Code

function mediafront_filefield_submit($form, &$form_state) {

  // Save this filefield
  mediafront_filefield_save($form_state['values']['instance']['entity_type'], $form_state['values']['instance']['bundle'], $form_state['values']['instance']['field_name'], isset($form_state['values']['media_type']) ? $form_state['values']['media_type'] : '', isset($form_state['values']['node_preset']) ? $form_state['values']['node_preset'] : '', isset($form_state['values']['thumb_preset']) ? $form_state['values']['thumb_preset'] : '');
}