Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
9004bed6
Commit
9004bed6
authored
Feb 09, 2006
by
Dries
Browse files
- Patch
#47899
by Zen: fixed weight issues with freetagging vocabulary.
parent
c6328111
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/taxonomy.module
View file @
9004bed6
...
...
@@ -528,7 +528,15 @@ function taxonomy_form_alter($form_id, &$form) {
else
{
$help
=
t
(
'A comma-separated list of terms describing this content. Example: funny, bungie jumping, "Company, Inc.".'
);
}
$form
[
'taxonomy'
][
'tags'
][
$vocabulary
->
vid
]
=
array
(
'#type'
=>
'textfield'
,
'#default_value'
=>
$typed_string
,
'#maxlength'
=>
100
,
'#autocomplete_path'
=>
'taxonomy/autocomplete/'
.
$vocabulary
->
vid
,
'#required'
=>
$vocabulary
->
required
,
'#title'
=>
$vocabulary
->
name
,
'#description'
=>
$help
);
$form
[
'taxonomy'
][
'tags'
][
$vocabulary
->
vid
]
=
array
(
'#type'
=>
'textfield'
,
'#title'
=>
$vocabulary
->
name
,
'#description'
=>
$help
,
'#required'
=>
$vocabulary
->
required
,
'#default_value'
=>
$typed_string
,
'#autocomplete_path'
=>
'taxonomy/autocomplete/'
.
$vocabulary
->
vid
,
'#weight'
=>
$vocabulary
->
weight
,
'#maxlength'
=>
100
,
);
}
else
{
$form
[
'taxonomy'
][
$vocabulary
->
vid
]
=
taxonomy_form
(
$vocabulary
->
vid
,
array_keys
(
$terms
),
$help
);
...
...
modules/taxonomy/taxonomy.module
View file @
9004bed6
...
...
@@ -528,7 +528,15 @@ function taxonomy_form_alter($form_id, &$form) {
else
{
$help
=
t
(
'A comma-separated list of terms describing this content. Example: funny, bungie jumping, "Company, Inc.".'
);
}
$form
[
'taxonomy'
][
'tags'
][
$vocabulary
->
vid
]
=
array
(
'#type'
=>
'textfield'
,
'#default_value'
=>
$typed_string
,
'#maxlength'
=>
100
,
'#autocomplete_path'
=>
'taxonomy/autocomplete/'
.
$vocabulary
->
vid
,
'#required'
=>
$vocabulary
->
required
,
'#title'
=>
$vocabulary
->
name
,
'#description'
=>
$help
);
$form
[
'taxonomy'
][
'tags'
][
$vocabulary
->
vid
]
=
array
(
'#type'
=>
'textfield'
,
'#title'
=>
$vocabulary
->
name
,
'#description'
=>
$help
,
'#required'
=>
$vocabulary
->
required
,
'#default_value'
=>
$typed_string
,
'#autocomplete_path'
=>
'taxonomy/autocomplete/'
.
$vocabulary
->
vid
,
'#weight'
=>
$vocabulary
->
weight
,
'#maxlength'
=>
100
,
);
}
else
{
$form
[
'taxonomy'
][
$vocabulary
->
vid
]
=
taxonomy_form
(
$vocabulary
->
vid
,
array_keys
(
$terms
),
$help
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment