summaryrefslogtreecommitdiff
path: root/modules/forum
diff options
context:
space:
mode:
Diffstat (limited to 'modules/forum')
-rw-r--r--modules/forum/forum.admin.inc15
-rw-r--r--modules/forum/forum.module4
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',
+ ),
);
}