Skip to content

Commit

Permalink
Without reliefweb_job_tagger_log_manual_changes_to_tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
attiks committed Dec 10, 2024
1 parent 202a209 commit d469c3e
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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().
*
Expand Down

0 comments on commit d469c3e

Please sign in to comment.