function data_taxonomy_tagging_form_submit in Data 6
Submit handler.
File
- data_taxonomy/
data_taxonomy.module, line 269 - Hooks and API functions for Data Node module.
Code
function data_taxonomy_tagging_form_submit($form, &$form_state) {
// Using clicked_button allows us to use more than one of the same form on
// a screen.
$post = $form_state['clicked_button']['#post'];
$tids = data_taxonomy_save_tags($form_state['values']['tags'], $post['vid']);
_data_taxonomy_save_relations($post['vid'], $post['id'], $post['table_name'], $tids);
}