diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-11 03:29:22 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-11 03:29:22 +0000 |
commit | 91ccdda421835fe3091c9204d912a6dbd1a5d57a (patch) | |
tree | 5558b2833a680afe13355966491f3c61b0a9b4b5 /profiles | |
parent | d1c261a8c52efaaf2ff3e96d63852278f7c7536a (diff) | |
download | brdo-91ccdda421835fe3091c9204d912a6dbd1a5d57a.tar.gz brdo-91ccdda421835fe3091c9204d912a6dbd1a5d57a.tar.bz2 |
#628244 by catch, bangpound, and yched: Remove magic taxonomy field creation in favour of consistency.
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/standard/standard.install | 17 |
1 files changed, 17 insertions, 0 deletions
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', |