diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-06-11 11:06:37 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-06-11 11:06:37 +0000 |
commit | 995f079e1e9fa9582bda98b667eab94068703dd7 (patch) | |
tree | 6719a1f8971003f0cbf9216fb46dae1b104dfbba | |
parent | fc22149f8ff9675f7ebf40fd18229e86bd561128 (diff) | |
download | brdo-995f079e1e9fa9582bda98b667eab94068703dd7.tar.gz brdo-995f079e1e9fa9582bda98b667eab94068703dd7.tar.bz2 |
- Patch #819476 by kiamlaluno, jhodgdon: book_form_update() parameters were not correct.
-rw-r--r-- | modules/book/book.pages.inc | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/modules/book/book.pages.inc b/modules/book/book.pages.inc index 0ff490abd..1767dfe1a 100644 --- a/modules/book/book.pages.inc +++ b/modules/book/book.pages.inc @@ -219,19 +219,15 @@ function book_remove_form_submit($form, &$form_state) { } /** - * AJAX callback to replace the book parent select options. + * Renders a new parent page select element when the book selection changes. * - * This function is called when the selected book is changed. It updates the - * cached form (either the node form or the book outline form) and returns - * rendered output to be used to replace the select containing the possible - * parent pages in the newly selected book. + * This function is called via AJAX when the selected book is changed on a node + * or book outline form. It creates a new parent page select element, adds it + * to the cached form, and then returns the rendered element so it can be + * displayed on the form. * - * @param $build_id - * The form's build_id. - * @param $bid - * A bid from from among those in the form's book select. * @return - * Prints the replacement HTML in JSON format. + * The rendered parent page select element. */ function book_form_update() { // Load the form based upon the $_POST data sent via the ajax call. |