Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
08b82913
Commit
08b82913
authored
Jun 23, 2002
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added the theme_invoke() function from Moshe's sandbox.
parent
39373da7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
includes/theme.inc
includes/theme.inc
+14
-0
No files found.
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
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