You are here

function filebrowser_form_metadata_submit in Filebrowser 7.2

Same name and namespace in other branches
  1. 8 filebrowser.pages.inc \filebrowser_form_metadata_submit()
  2. 6.2 filebrowser.pages.inc \filebrowser_form_metadata_submit()
  3. 7.4 filebrowser.pages.inc \filebrowser_form_metadata_submit()
  4. 7.3 filebrowser.pages.inc \filebrowser_form_metadata_submit()

File

./filebrowser.pages.inc, line 136
Several support functions for filebrowser

Code

function filebrowser_form_metadata_submit($form, $form_state) {
  foreach ($form['#node']->file_listing as $name => $file) {
    if (isset($file['fid']) && isset($form_state['values'][$file['fid']])) {
      module_invoke_all('filebrowser_metadata_set', $file, $form_state['values'][$file['fid']]);
    }
  }
  drupal_goto("node/{$form['#node']->nid}/{$form['#node']->file_listing['.']['fid']}");
}