You are here

function scald_settings_form_submit in Scald: Media Management made easy 7

Handles the admin settings form submission.

1 string reference to 'scald_settings_form_submit'
scald_settings_form in includes/scald.admin.inc
Generates Scald admin settings form.

File

includes/scald.admin.inc, line 649

Code

function scald_settings_form_submit($form, &$form_state) {

  // Fetch info on the scald_tags taxonomy reference field and changed
  // the allowed vocabulary.
  $field = field_info_field('scald_tags');
  $field['settings']['allowed_values'][0]['vocabulary'] = $form_state['values']['scald_tags_vocabulary'];
  field_update_field($field);
}