You are here

function media_metadata_form_submit in D7 Media 6

1 string reference to 'media_metadata_form_submit'
media_metadata_form in media_metadata/media_metadata.module

File

media_metadata/media_metadata.module, line 62
This module provides metadata integration with the Media module.

Code

function media_metadata_form_submit($form, &$form_state) {
  $mimetype = $form_state['values']['mimetype'];
  $keys = media_metadata_keys($mimetype);
  $values = array();
  foreach ($keys as $key) {
    $values[$key] = $form_state['values'][$key];
  }

  // @TODO: Grab the file info and save the record.
}