You are here

function data_node_settings_form_submit in Data 6

Submit handler for data_node_settings_form().

File

data_node/data_node.admin.inc, line 44
Admin UI functionality.

Code

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