From 28377df14666a781d6f025d3a24f5fe839caebc2 Mon Sep 17 00:00:00 2001 From: mariacha Date: Tue, 1 Oct 2024 15:21:39 -0700 Subject: [PATCH] Looking for the within phrase. --- modules/wri_narrative/wri_narrative.post_update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/wri_narrative/wri_narrative.post_update.php b/modules/wri_narrative/wri_narrative.post_update.php index 687d8df7e..be0cd9ded 100644 --- a/modules/wri_narrative/wri_narrative.post_update.php +++ b/modules/wri_narrative/wri_narrative.post_update.php @@ -75,7 +75,7 @@ function wri_narrative_post_update_rewrite_narrative_taxonomies(&$sandbox) { /** * Updates the tokens in narrative taxonomies, round 2. */ -function wri_narrative_post_update_rewrite_narrative_taxonomies3(&$sandbox) { +function wri_narrative_post_update_rewrite_narrative_taxonomies2(&$sandbox) { // We don't display the narrative taxonomy on nodes older than 2020, so clear // that boilerplate out of the database. Drupal::database()->query("DELETE FROM node__field_narrative_taxonomy WHERE entity_id IN (SELECT nid FROM node_field_data WHERE created<1577836800 AND type IN ('data', 'publication'))")->execute(); @@ -120,7 +120,7 @@ function wri_narrative_post_update_rewrite_narrative_taxonomies3(&$sandbox) { // Replace link strings with new values. $taxonomy_value[0]['value'] = str_replace( ['[node:field_primary_contacts:entity:link]', - '[node:field_projects:entity:link] within ', + \Drupal::config('wri_node.settings')->get('within_phrase') . ' ', ], ['[node:primary_contact_links]', '[node:projects_links_within]',