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
0ec174d5
Commit
0ec174d5
authored
Feb 14, 2006
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#47329
by merlinofchaos: fixed blogapi module problem.
parent
25eef00f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/blogapi.module
modules/blogapi.module
+1
-1
modules/blogapi/blogapi.module
modules/blogapi/blogapi.module
+1
-1
No files found.
modules/blogapi.module
View file @
0ec174d5
...
...
@@ -723,7 +723,7 @@ function _blogapi_blogid($id) {
}
function
_blogapi_get_node_types
()
{
$available_types
=
array_keys
(
variable_get
(
'blogapi_node_types'
,
array
(
'blog'
=>
1
))
,
1
);
$available_types
=
array_keys
(
array_filter
(
variable_get
(
'blogapi_node_types'
,
array
(
'blog'
=>
1
))
)
);
$types
=
array
();
foreach
(
node_get_types
()
as
$type
=>
$name
)
{
if
(
node_access
(
'create'
,
$type
)
&&
in_array
(
$type
,
$available_types
))
{
...
...
modules/blogapi/blogapi.module
View file @
0ec174d5
...
...
@@ -723,7 +723,7 @@ function _blogapi_blogid($id) {
}
function
_blogapi_get_node_types
()
{
$available_types
=
array_keys
(
variable_get
(
'blogapi_node_types'
,
array
(
'blog'
=>
1
))
,
1
);
$available_types
=
array_keys
(
array_filter
(
variable_get
(
'blogapi_node_types'
,
array
(
'blog'
=>
1
))
)
);
$types
=
array
();
foreach
(
node_get_types
()
as
$type
=>
$name
)
{
if
(
node_access
(
'create'
,
$type
)
&&
in_array
(
$type
,
$available_types
))
{
...
...
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