You are here

function audio_filefield_paths_form_submit in File (Field) Paths 6

Implements hook_filefield_paths_form_submit().

File

modules/audio.inc, line 40
Provides FileField Paths integration with the Audio module.

Code

function audio_filefield_paths_form_submit(&$form_state, &$ffp) {
  if ($form_state['values']['form_id'] == 'node_type_form') {
    $ffp['audio'] = array(
      'type' => $form_state['values']['type'],
    );
  }
}