function filefield_filefield_paths_form_submit in File (Field) Paths 5
Same name and namespace in other branches
- 6 modules/filefield.inc \filefield_filefield_paths_form_submit()
Implementation of hook_filefield_paths_form_submit().
File
- modules/
filefield.inc, line 46 - Provides FileField Paths integration with the FileField module.
Code
function filefield_filefield_paths_form_submit(&$form_values, &$ffp) {
if (isset($form_values['form_id']) && $form_values['form_id'] != 'node_type_form') {
$ffp[$form_values['field_name']] = array(
'type' => $form_values['type_name'],
);
$form_values['file_path'] = $form_values['ffp_' . $form_values['field_name']]['file_path'];
}
}