You are here

function comment_upload_filefield_paths_form_submit in File (Field) Paths 5

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

Implementation of hook_filefield_paths_form_submit().

File

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

Code

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