Skip to content

Commit

Permalink
Looking for the within phrase.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacha committed Oct 1, 2024
1 parent f0e77b9 commit 28377df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/wri_narrative/wri_narrative.post_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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]',
Expand Down

0 comments on commit 28377df

Please sign in to comment.