You are here

function event_log_track_taxonomy_taxonomy_vocabulary_update 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_update()

Implements hook_taxonomy_vocabulary_update().

File

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

Code

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