You are here

function comment_upload_filefield_paths_form_submit in File (Field) Paths 6

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

Implements hook_filefield_paths_form_submit().

File

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

Code

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