Issue #1346098 by benjy | joachim: Standard install profile sets a pointless $vocabulary->help.

merge-requests/26/head
David Rothstein 2013-12-25 15:18:47 -05:00
parent 7b029aca04
commit 998ec18695
1 changed files with 2 additions and 4 deletions

View File

@ -275,13 +275,10 @@ function standard_install() {
// Create a default vocabulary named "Tags", enabled for the 'article' content type.
$description = st('Use tags to group articles on similar topics into categories.');
$help = st('Enter a comma-separated list of words to describe your content.');
$vocabulary = (object) array(
'name' => st('Tags'),
'description' => $description,
'machine_name' => 'tags',
'help' => $help,
);
taxonomy_vocabulary_save($vocabulary);
@ -301,12 +298,13 @@ function standard_install() {
);
field_create_field($field);
$help = st('Enter a comma-separated list of words to describe your content.');
$instance = array(
'field_name' => 'field_' . $vocabulary->machine_name,
'entity_type' => 'node',
'label' => 'Tags',
'bundle' => 'article',
'description' => $vocabulary->help,
'description' => $help,
'widget' => array(
'type' => 'taxonomy_autocomplete',
'weight' => -4,