You are here

function taxonomy_multidelete_term_processor in Taxonomy Multi-delete Terms 7

Batch processor function to delete terms.

1 string reference to 'taxonomy_multidelete_term_processor'
taxonomy_multidelete_term_confirm_delete_terms_submit in ./taxonomy_multidelete_term.module
Delete terms after confirmation.

File

./taxonomy_multidelete_term.module, line 358
Taxonomy multi delete module use to delete terms in bulk.

Code

function taxonomy_multidelete_term_processor($chunk, &$context) {
  foreach ($chunk['tids'] as $tid) {
    taxonomy_term_delete($tid);
  }
  $context['results']['terms'] = $chunk['terms-name'];
}