Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
08b82913
Commit
08b82913
authored
Jun 23, 2002
by
Dries Buytaert
Browse files
- Added the theme_invoke() function from Moshe's sandbox.
parent
39373da7
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/theme.inc
View file @
08b82913
...
...
@@ -140,4 +140,18 @@ function theme_blocks($region, &$theme) {
}
}
function
theme_invoke
()
{
global
$theme
;
$args
=
func_get_args
();
$function
=
array_shift
(
$args
);
if
(
method_exists
(
$theme
,
$function
))
{
return
call_user_method_array
(
$function
,
$theme
,
$args
);
}
else
{
return
call_user_func_array
(
$function
,
$args
);
}
}
?>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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