diff options
author | Jennifer Hodgdon <yahgrp@poplarware.com> | 2013-11-11 09:38:58 -0800 |
---|---|---|
committer | Jennifer Hodgdon <yahgrp@poplarware.com> | 2013-11-11 09:38:58 -0800 |
commit | ae919dbaa8c7faf150969fca9cac5c3e4f443b96 (patch) | |
tree | 1bdcf86a41cff3166a9c442e0dc3c719da7909c7 /modules/system | |
parent | 2912a88b8f89b731b29143a358d5f59de8be4826 (diff) | |
download | brdo-ae919dbaa8c7faf150969fca9cac5c3e4f443b96.tar.gz brdo-ae919dbaa8c7faf150969fca9cac5c3e4f443b96.tar.bz2 |
Issue #332518 by diego21, joachim, chriscohen: Fix up documentation for system_settings_form().
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.module | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index 2bbcd7fcf..eada9ffc2 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -2730,7 +2730,17 @@ function system_default_region($theme) { } /** - * Add default buttons to a form and set its prefix. + * Sets up a form to save information automatically. + * + * This function adds a submit handler and a submit button to a form array. The + * submit function saves all the data in the form, using variable_set(), to + * variables named the same as the keys in the form array. Note that this means + * you should normally prefix your form array keys with your module name, so + * that they are unique when passed into variable_set(). + * + * If you need to manipulate the data in a custom manner, you can either put + * your own submission handler in the form array before calling this function, + * or just use your own submission handler instead of calling this function. * * @param $form * An associative array containing the structure of the form. @@ -2739,6 +2749,7 @@ function system_default_region($theme) { * The form structure. * * @see system_settings_form_submit() + * * @ingroup forms */ function system_settings_form($form) { @@ -2757,7 +2768,7 @@ function system_settings_form($form) { } /** - * Execute the system_settings_form. + * Form submission handler for system_settings_form(). * * If you want node type configure style handling of your checkboxes, * add an array_filter value to your form. |