You are here

function upload_filefield_paths_form_submit in File (Field) Paths 6

Same name and namespace in other branches
  1. 5 modules/upload.inc \upload_filefield_paths_form_submit()

Implements hook_filefield_paths_form_submit().

File

modules/upload.inc, line 39
Provides FileField Paths integration with the Upload module.

Code

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