summaryrefslogtreecommitdiff
path: root/includes/form.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/form.inc')
-rw-r--r--includes/form.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 0839a90b1..d0db80c9f 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -103,10 +103,10 @@ function drupal_get_form($form_id, &$form, $callback = NULL) {
}
}
- if (function_exists('theme_' . $form_id)) {
+ if (theme_get_function($form_id)) {
$form['#theme'] = $form_id;
}
- elseif (function_exists('theme_' . $callback)) {
+ elseif (theme_get_function($callback)) {
$form['#theme'] = $callback;
}
return form_render($form);