You are here

function filefield_paths_form_submit in File (Field) Paths 7

Same name and namespace in other branches
  1. 8 filefield_paths.module \filefield_paths_form_submit()
  2. 5 filefield_paths.module \filefield_paths_form_submit()
  3. 6 filefield_paths.module \filefield_paths_form_submit()

Submit callback for File (Field) Paths settings form.

_state

Parameters

$form:

1 string reference to 'filefield_paths_form_submit'
filefield_paths_form_alter in ./filefield_paths.module
Implements hook_form_alter().

File

./filefield_paths.module, line 219
Contains core functions for the File (Field) Paths module.

Code

function filefield_paths_form_submit($form, &$form_state) {

  // Retroactive updates.
  if ($form_state['values']['instance']['settings']['filefield_paths_enabled'] && $form_state['values']['instance']['settings']['filefield_paths']['retroactive_update']) {
    if (filefield_paths_batch_update($form_state['values']['instance'])) {
      batch_process($form_state['redirect']);
    }
  }
}