You are here

function scald_dailymotion_imports_form_submit in Scald: Media Management made easy 6

Handles the submission of the whole form.

File

scald_dailymotion/scald_dailymotion.admin.inc, line 84
Provides admin form for DailyMotion's Scald Provider.

Code

function scald_dailymotion_imports_form_submit($form, &$form_state) {
  drupal_set_message(t('The configuration options have been saved.'));
  $imports = array();
  foreach ($form_state['values']['imports'] as $key => $import) {
    if ($import['type'] != 'delete') {
      $imports[$key] = $import;
    }
  }
  variable_set('scald_dailymotion_imports', $imports);
}