Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
995f079e
Commit
995f079e
authored
14 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#819476
by kiamlaluno, jhodgdon: book_form_update() parameters were not correct.
parent
fc22149f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/book/book.pages.inc
+6
-10
6 additions, 10 deletions
modules/book/book.pages.inc
with
6 additions
and
10 deletions
modules/book/book.pages.inc
+
6
−
10
View file @
995f079e
...
...
@@ -219,19 +219,15 @@ function book_remove_form_submit($form, &$form_state) {
}
/**
*
AJAX callback to replace the book parent select option
s.
*
Renders a new parent page select element when the book selection change
s.
*
* This function is called when the selected book is changed
. It updates th
e
*
cached form (either the node form or the book outline form) and returns
*
rendered output to be used to replace the select containing the possibl
e
*
parent pages in the newly selected book
.
* This function is called
via AJAX
when the selected book is changed
on a nod
e
*
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 b
e
*
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 forma
t.
*
The rendered parent page select elemen
t.
*/
function
book_form_update
()
{
// Load the form based upon the $_POST data sent via the ajax call.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment