function media_browser_plus_form_taxonomy_term_confirm_delete_submit in Media Browser Plus 7.3
Submit handler for preparing for term deletion.
Because hook_taxonomy_term_delete() is invoked after all data are removed from the db we fill the static cache so that it's still possible to build the necessary paths to clean the filesystem.
See also
media_browser_plus_taxonomy_term_delete()
1 string reference to 'media_browser_plus_form_taxonomy_term_confirm_delete_submit'
File
- ./
media_browser_plus.module, line 653 - Media Browser Plus - enhanced file management functions.
Code
function media_browser_plus_form_taxonomy_term_confirm_delete_submit(&$form, &$form_state) {
// Fill the static caches needed to clean the filesystem.
taxonomy_get_parents($form_state['values']['tid']);
taxonomy_get_parents_all($form_state['values']['tid']);
}