Issue #1346098 by benjy | joachim: Standard install profile sets a pointless $vocabulary->help.
parent
7b029aca04
commit
998ec18695
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue