Skip to content
Snippets Groups Projects
Commit 7864b006 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #762404 by BarisW: improve the field name of taxonomy fields.

parent 11751c15
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -247,7 +247,7 @@ function standard_install() {
'predicates' => array('rdfs:seeAlso'),
'type' => 'rel',
),
'taxonomy_tags' => array(
'field_tags' => array(
'predicates' => array('dc:subject'),
'type' => 'rel',
),
......@@ -284,7 +284,7 @@ function standard_install() {
taxonomy_vocabulary_save($vocabulary);
$field = array(
'field_name' => 'taxonomy_' . $vocabulary->machine_name,
'field_name' => 'field_' . $vocabulary->machine_name,
'type' => 'taxonomy_term_reference',
// Set cardinality to unlimited for tagging.
'cardinality' => FIELD_CARDINALITY_UNLIMITED,
......@@ -300,7 +300,7 @@ function standard_install() {
field_create_field($field);
$instance = array(
'field_name' => 'taxonomy_' . $vocabulary->machine_name,
'field_name' => 'field_' . $vocabulary->machine_name,
'entity_type' => 'node',
'label' => $vocabulary->name,
'bundle' => 'article',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment