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
7946eca1
Commit
7946eca1
authored
Jan 26, 2006
by
Dries
Browse files
- Patch
#35926
by asimmonds: make required vocabularies actually required.
parent
5d43619c
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/taxonomy.module
View file @
7946eca1
...
...
@@ -533,6 +533,7 @@ function taxonomy_form_alter($form_id, &$form) {
else
{
$form
[
'taxonomy'
][
$vocabulary
->
vid
]
=
taxonomy_form
(
$vocabulary
->
vid
,
array_keys
(
$terms
),
$help
);
$form
[
'taxonomy'
][
$vocabulary
->
vid
][
'#weight'
]
=
$vocabulary
->
weight
;
$form
[
'taxonomy'
][
$vocabulary
->
vid
][
'#required'
]
=
$vocabulary
->
required
;
}
}
if
(
isset
(
$form
[
'taxonomy'
]))
{
...
...
modules/taxonomy/taxonomy.module
View file @
7946eca1
...
...
@@ -533,6 +533,7 @@ function taxonomy_form_alter($form_id, &$form) {
else
{
$form
[
'taxonomy'
][
$vocabulary
->
vid
]
=
taxonomy_form
(
$vocabulary
->
vid
,
array_keys
(
$terms
),
$help
);
$form
[
'taxonomy'
][
$vocabulary
->
vid
][
'#weight'
]
=
$vocabulary
->
weight
;
$form
[
'taxonomy'
][
$vocabulary
->
vid
][
'#required'
]
=
$vocabulary
->
required
;
}
}
if
(
isset
(
$form
[
'taxonomy'
]))
{
...
...
Write
Preview
Supports
Markdown
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