From 35e21e54e1122f98bede28f89d80f2fb13b3fd97 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 15 Oct 2009 12:27:34 +0000 Subject: - Patch #412730 by Crell, jbomb, JohnAlbin: theme system should report when a theme key is not found. --- modules/forum/forum.admin.inc | 15 +++++++++++++++ modules/forum/forum.module | 4 ++++ 2 files changed, 19 insertions(+) (limited to 'modules/forum') diff --git a/modules/forum/forum.admin.inc b/modules/forum/forum.admin.inc index d7dbe5fa3..105e2fd26 100644 --- a/modules/forum/forum.admin.inc +++ b/modules/forum/forum.admin.inc @@ -98,6 +98,21 @@ function forum_form_submit($form, &$form_state) { return; } +/** + * Theme forum forms. + * + * By default this does not alter the appearance of a form at all, + * but is provided as a convenience for themers. + * + * @param $variables + * An associative array containing: + * - form: An associative array containing the structure of the form. + * @ingroup themeable + */ +function theme_forum_form($variables) { + return drupal_render_children($variables['form']); +} + /** * Returns a form for adding a container to the forum vocabulary * diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 95c0337e6..6a62bdfe8 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -57,6 +57,10 @@ function forum_theme() { 'template' => 'forum-submitted', 'arguments' => array('topic' => NULL), ), + 'forum_form' => array( + 'arguments' => array('form' => NULL), + 'file' => 'forum.admin.inc', + ), ); } -- cgit v1.2.3