summaryrefslogtreecommitdiff
path: root/profiles/standard
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/standard')
-rw-r--r--profiles/standard/standard.install17
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',