You are here

function data_taxonomy_settings_form_submit in Data 6

Submit handler for data_node_settings_form().

File

data_taxonomy/data_taxonomy.admin.inc, line 50
Admin UI functionality.

Code

function data_taxonomy_settings_form_submit($form, &$form_state) {
  $meta = $form['#table']
    ->get('meta');
  $meta['data_taxonomy']['vocabularies'] = array_filter($form_state['values']['vocabularies']);
  $meta['data_taxonomy']['id'] = $form_state['values']['id'];
  $form['#table']
    ->update(array(
    'meta' => $meta,
  ));
  drupal_set_message(t('Settings saved.'));
}