From d469c3e6d6fc8d9755fadda611d76aef0b3c34ec Mon Sep 17 00:00:00 2001 From: "Peter Droogmans (attiks)" Date: Tue, 10 Dec 2024 11:46:32 +0100 Subject: [PATCH] Without reliefweb_job_tagger_log_manual_changes_to_tagging --- .../reliefweb_job_tagger.module | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/html/modules/custom/reliefweb_job_tagger/reliefweb_job_tagger.module b/html/modules/custom/reliefweb_job_tagger/reliefweb_job_tagger.module index 2592f5040..0cb100164 100644 --- a/html/modules/custom/reliefweb_job_tagger/reliefweb_job_tagger.module +++ b/html/modules/custom/reliefweb_job_tagger/reliefweb_job_tagger.module @@ -225,9 +225,6 @@ function reliefweb_job_tagger_node_presave(EntityInterface $node) { return; } - // Track changes to AI fields. - reliefweb_job_tagger_log_manual_changes_to_tagging($node); - // Already queued, nothing left to do. if ($node->reliefweb_job_tagger_status->value == 'queued' || $node->reliefweb_job_tagger_status->value == 'processed') { return; @@ -313,18 +310,6 @@ function reliefweb_job_tagger_menu_local_tasks_alter(&$data, $route_name, Refina } } -/** - * Check for manual changes to the AI tagging and log them. - * - * @param \Drupal\Entity\EntityInterface $entity - * Changed entity. - */ -function reliefweb_job_tagger_log_manual_changes_to_tagging(EntityInterface $entity) { - if (!isset($entity->original) || !$entity->original->hasField('reliefweb_job_tagger_status')) { - return; - } -} - /** * Implements hook_entity_after_save(). *