You are here

function filefield_filefield_paths_form_submit in File (Field) Paths 6

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

Implements hook_filefield_paths_form_submit().

File

modules/filefield.inc, line 32
Provides FileField Paths integration with the FileField module.

Code

function filefield_filefield_paths_form_submit(&$form_state, &$ffp) {
  if (isset($form_state['values']['form_id']) && $form_state['values']['form_id'] != 'node_type_form') {
    $ffp[$form_state['values']['field_name']] = array(
      'type' => $form_state['values']['type_name'],
    );
    $form_state['values']['file_path'] = $form_state['values']['ffp_' . $form_state['values']['field_name']]['file_path'];
  }
}