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
views
Commits
7a10b5c3
Commit
7a10b5c3
authored
Jun 24, 2006
by
merlinofchaos
Browse files
Patch by bomarmonk
parent
ded775c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
views.module
View file @
7a10b5c3
...
...
@@ -2230,5 +2230,30 @@ function views_create_view_code($vid) {
return
$output
;
}
function render_view_page() {
$args
= func_get_args();
while (
$next
= array_shift(
$args
)) {
if (!
$viewname
)
$viewname
=
$next
;
else
$viewname
.= "
/
$next
";
if (
$view
= _views_get_view(
$viewname
))
break;
}
if (!
$view
)
return drupal_not_found();
if (
$view->url
== 1)
return drupal_not_found();
// Done before theming so theme can change it if it wants.
drupal_set_title(
$view->title
);
$output
= views_view('page',
$view
,
$args
);
if (
$output
) {
print
$output
;
}
}
?>
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