Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
10d7f773
Commit
10d7f773
authored
Jan 19, 2006
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#45281
by chx: made categories with forum topics work again.
parent
61654466
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
modules/forum.module
modules/forum.module
+1
-1
modules/forum/forum.module
modules/forum/forum.module
+1
-1
modules/taxonomy.module
modules/taxonomy.module
+1
-2
modules/taxonomy/taxonomy.module
modules/taxonomy/taxonomy.module
+1
-2
No files found.
modules/forum.module
View file @
10d7f773
...
...
@@ -604,7 +604,7 @@ function forum_form(&$node) {
function
forum_prepare
(
&
$node
)
{
if
(
!
$node
->
nid
)
{
// new topic
$node
->
taxonomy
[
]
=
arg
(
3
);
$node
->
taxonomy
[
arg
(
3
)
]
=
1
;
}
}
...
...
modules/forum/forum.module
View file @
10d7f773
...
...
@@ -604,7 +604,7 @@ function forum_form(&$node) {
function
forum_prepare
(
&
$node
)
{
if
(
!
$node
->
nid
)
{
// new topic
$node
->
taxonomy
[
]
=
arg
(
3
);
$node
->
taxonomy
[
arg
(
3
)
]
=
1
;
}
}
...
...
modules/taxonomy.module
View file @
10d7f773
...
...
@@ -531,8 +531,7 @@ function taxonomy_form_alter($form_id, &$form) {
$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
);
}
else
{
$ntterms
=
isset
(
$node
->
taxonomy
)
?
$terms
:
array_keys
(
$terms
);
$form
[
'taxonomy'
][
$vocabulary
->
vid
]
=
taxonomy_form
(
$vocabulary
->
vid
,
$ntterms
,
$help
,
'taxonomy'
);
$form
[
'taxonomy'
][
$vocabulary
->
vid
]
=
taxonomy_form
(
$vocabulary
->
vid
,
array_keys
(
$terms
),
$help
);
$form
[
'taxonomy'
][
$vocabulary
->
vid
][
'#weight'
]
=
$vocabulary
->
weight
;
}
}
...
...
modules/taxonomy/taxonomy.module
View file @
10d7f773
...
...
@@ -531,8 +531,7 @@ function taxonomy_form_alter($form_id, &$form) {
$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
);
}
else
{
$ntterms
=
isset
(
$node
->
taxonomy
)
?
$terms
:
array_keys
(
$terms
);
$form
[
'taxonomy'
][
$vocabulary
->
vid
]
=
taxonomy_form
(
$vocabulary
->
vid
,
$ntterms
,
$help
,
'taxonomy'
);
$form
[
'taxonomy'
][
$vocabulary
->
vid
]
=
taxonomy_form
(
$vocabulary
->
vid
,
array_keys
(
$terms
),
$help
);
$form
[
'taxonomy'
][
$vocabulary
->
vid
][
'#weight'
]
=
$vocabulary
->
weight
;
}
}
...
...
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