You are here

function event_log_track_taxonomy_taxonomy_vocabulary_delete in Events Log Track 8

Same name and namespace in other branches
  1. 8.2 event_log_track_taxonomy/event_log_track_taxonomy.module \event_log_track_taxonomy_taxonomy_vocabulary_delete()

Implements hook_taxonomy_vocabulary_delete().

File

event_log_track_taxonomy/event_log_track_taxonomy.module, line 55
Logs menu CUD commands in the event_log_track module.

Code

function event_log_track_taxonomy_taxonomy_vocabulary_delete($vocabulary) {
  $log = array(
    'type' => 'taxonomy',
    'operation' => 'vocabulary delete',
    'description' => t('%title (%name)', array(
      '%title' => $vocabulary
        ->label(),
      '%name' => $vocabulary
        ->getOriginalId(),
    )),
    'ref_char' => $vocabulary
      ->getOriginalId(),
  );
  event_log_track_insert($log);
}