You are here

function upload_filefield_paths_form_submit in File (Field) Paths 5

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

Implementation of hook_filefield_paths_form_submit().

File

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

Code

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