summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-10-23 01:06:58 +0000
committerDries Buytaert <dries@buytaert.net>2009-10-23 01:06:58 +0000
commitf2d90e99fb1107d78291ab2899f9fdb08bdfa979 (patch)
treeaab86ca2d3bcae53f6aa01f0378b64b82650a84a
parent08386dac6dab46326314924e15b04829bab4916a (diff)
downloadbrdo-f2d90e99fb1107d78291ab2899f9fdb08bdfa979.tar.gz
brdo-f2d90e99fb1107d78291ab2899f9fdb08bdfa979.tar.bz2
- Patch #606796 by jhodgdon: fixed documentation inaccuracy with filter_form().
-rw-r--r--modules/filter/filter.module16
1 files changed, 10 insertions, 6 deletions
diff --git a/modules/filter/filter.module b/modules/filter/filter.module
index 5afb01a72..f0852510e 100644
--- a/modules/filter/filter.module
+++ b/modules/filter/filter.module
@@ -615,17 +615,21 @@ function check_markup($text, $format_id = NULL, $langcode = '', $cache = FALSE)
}
/**
- * Generate a selector for choosing a format in a form.
+ * Generates a selector for choosing a format in a form.
*
- * @ingroup forms
* @param $selected_format
- * The ID of the format that is currently selected.
+ * The ID of the format that is currently selected; uses the default format
+ * for the current user if not provided.
* @param $weight
- * The weight of the text format.
+ * The weight of the form element within the form.
* @param $parents
- * Required when defining multiple text formats on a single node or having a different parent than 'format'.
+ * The parents array of the element. Required when defining multiple text
+ * formats on a single form or having a different parent than 'format'.
+ *
* @return
- * HTML for the form element.
+ * Form API array for the form element.
+ *
+ * @ingroup forms
*/
function filter_form($selected_format = NULL, $weight = NULL, $parents = array('format')) {
global $user;