Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
229
Merge Requests
229
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
da1de1df
Commit
da1de1df
authored
Oct 28, 2005
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#35205
by stefan: removed some deprecated code from forum.module! Yay.
parent
0f373580
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
32 deletions
+6
-32
modules/forum.module
modules/forum.module
+3
-16
modules/forum/forum.module
modules/forum/forum.module
+3
-16
No files found.
modules/forum.module
View file @
da1de1df
...
...
@@ -239,7 +239,7 @@ function _forum_parent_select($tid, $title, $child_type) {
if
(
$tree
)
{
foreach
(
$tree
as
$term
)
{
if
(
!
in_array
(
$term
->
tid
,
$exclude
))
{
$options
[
$term
->
tid
]
=
_
forum_depth
(
$term
->
depth
)
.
$term
->
name
;
$options
[
$term
->
tid
]
=
_
taxonomy_depth
(
$term
->
depth
)
.
$term
->
name
;
}
}
}
...
...
@@ -263,10 +263,10 @@ function forum_overview() {
if
(
$tree
)
{
foreach
(
$tree
as
$term
)
{
if
(
in_array
(
$term
->
tid
,
variable_get
(
'forum_containers'
,
array
())))
{
$rows
[]
=
array
(
_
forum
_depth
(
$term
->
depth
)
.
' '
.
check_plain
(
$term
->
name
),
l
(
t
(
'edit container'
),
"admin/forum/edit/container/
$term->tid
"
));
$rows
[]
=
array
(
_
taxonomy
_depth
(
$term
->
depth
)
.
' '
.
check_plain
(
$term
->
name
),
l
(
t
(
'edit container'
),
"admin/forum/edit/container/
$term->tid
"
));
}
else
{
$rows
[]
=
array
(
_
forum
_depth
(
$term
->
depth
)
.
' '
.
check_plain
(
$term
->
name
),
l
(
t
(
'edit forum'
),
"admin/forum/edit/forum/
$term->tid
"
));
$rows
[]
=
array
(
_
taxonomy
_depth
(
$term
->
depth
)
.
' '
.
check_plain
(
$term
->
name
),
l
(
t
(
'edit forum'
),
"admin/forum/edit/forum/
$term->tid
"
));
}
}
...
...
@@ -277,19 +277,6 @@ function forum_overview() {
return
theme
(
'table'
,
$header
,
$rows
);
}
/**
* Helper function used to generate indentation for forum list
*
* @param $depth Depth of the indentation
* @param $graphic HTML text to be repeated for each stage of depth
*/
function
_forum_depth
(
$depth
,
$graphic
=
'--'
)
{
for
(
$n
=
0
;
$n
<
$depth
;
$n
++
)
{
$result
.
=
$graphic
;
}
return
$result
;
}
/**
* Returns the vocabulary id for forum navigation.
*/
...
...
modules/forum/forum.module
View file @
da1de1df
...
...
@@ -239,7 +239,7 @@ function _forum_parent_select($tid, $title, $child_type) {
if
(
$tree
)
{
foreach
(
$tree
as
$term
)
{
if
(
!
in_array
(
$term
->
tid
,
$exclude
))
{
$options
[
$term
->
tid
]
=
_
forum_depth
(
$term
->
depth
)
.
$term
->
name
;
$options
[
$term
->
tid
]
=
_
taxonomy_depth
(
$term
->
depth
)
.
$term
->
name
;
}
}
}
...
...
@@ -263,10 +263,10 @@ function forum_overview() {
if
(
$tree
)
{
foreach
(
$tree
as
$term
)
{
if
(
in_array
(
$term
->
tid
,
variable_get
(
'forum_containers'
,
array
())))
{
$rows
[]
=
array
(
_
forum
_depth
(
$term
->
depth
)
.
' '
.
check_plain
(
$term
->
name
),
l
(
t
(
'edit container'
),
"admin/forum/edit/container/
$term->tid
"
));
$rows
[]
=
array
(
_
taxonomy
_depth
(
$term
->
depth
)
.
' '
.
check_plain
(
$term
->
name
),
l
(
t
(
'edit container'
),
"admin/forum/edit/container/
$term->tid
"
));
}
else
{
$rows
[]
=
array
(
_
forum
_depth
(
$term
->
depth
)
.
' '
.
check_plain
(
$term
->
name
),
l
(
t
(
'edit forum'
),
"admin/forum/edit/forum/
$term->tid
"
));
$rows
[]
=
array
(
_
taxonomy
_depth
(
$term
->
depth
)
.
' '
.
check_plain
(
$term
->
name
),
l
(
t
(
'edit forum'
),
"admin/forum/edit/forum/
$term->tid
"
));
}
}
...
...
@@ -277,19 +277,6 @@ function forum_overview() {
return
theme
(
'table'
,
$header
,
$rows
);
}
/**
* Helper function used to generate indentation for forum list
*
* @param $depth Depth of the indentation
* @param $graphic HTML text to be repeated for each stage of depth
*/
function
_forum_depth
(
$depth
,
$graphic
=
'--'
)
{
for
(
$n
=
0
;
$n
<
$depth
;
$n
++
)
{
$result
.
=
$graphic
;
}
return
$result
;
}
/**
* Returns the vocabulary id for forum navigation.
*/
...
...
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