diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-10-15 12:27:34 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-10-15 12:27:34 +0000 |
commit | 35e21e54e1122f98bede28f89d80f2fb13b3fd97 (patch) | |
tree | b757a831278a4dbc99a3ae5042cc37f95f53aacb /modules/forum | |
parent | 5acbec27001aa382699cf144d9a953c9b725bc01 (diff) | |
download | brdo-35e21e54e1122f98bede28f89d80f2fb13b3fd97.tar.gz brdo-35e21e54e1122f98bede28f89d80f2fb13b3fd97.tar.bz2 |
- Patch #412730 by Crell, jbomb, JohnAlbin: theme system should report when a theme key is not found.
Diffstat (limited to 'modules/forum')
-rw-r--r-- | modules/forum/forum.admin.inc | 15 | ||||
-rw-r--r-- | modules/forum/forum.module | 4 |
2 files changed, 19 insertions, 0 deletions
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 @@ -99,6 +99,21 @@ function forum_form_submit($form, &$form_state) { } /** + * 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 * * @param $edit Associative array containing a container term to be added or edited. 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', + ), ); } |