From 91ccdda421835fe3091c9204d912a6dbd1a5d57a Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 11 Feb 2010 03:29:22 +0000 Subject: #628244 by catch, bangpound, and yched: Remove magic taxonomy field creation in favour of consistency. --- profiles/standard/standard.install | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'profiles/standard/standard.install') diff --git a/profiles/standard/standard.install b/profiles/standard/standard.install index fd02f282c..450347bb2 100644 --- a/profiles/standard/standard.install +++ b/profiles/standard/standard.install @@ -304,6 +304,23 @@ function standard_install() { ); taxonomy_vocabulary_save($vocabulary); + + $field = array( + 'field_name' => 'taxonomy_' . $vocabulary->machine_name, + 'type' => 'taxonomy_term_reference', + // Set cardinality to unlimited for tagging. + 'cardinality' => FIELD_CARDINALITY_UNLIMITED, + 'settings' => array( + 'allowed_values' => array( + array( + 'vid' => $vocabulary->vid, + 'parent' => 0, + ), + ), + ), + ); + field_create_field($field); + $instance = array( 'field_name' => 'taxonomy_' . $vocabulary->machine_name, 'object_type' => 'node', -- cgit v1.2.3