Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3445188
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
drupal-3445188
Commits
99f07cca
Commit
99f07cca
authored
14 years ago
by
Gábor Hojtsy
Browse files
Options
Downloads
Patches
Plain Diff
#819476
by kiamlaluno, jhodgdon, rdrh555: improved documentation for book_form_update()
parent
7b3787ba
No related branches found
No related tags found
No related merge requests found
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 @
99f07cca
...
...
@@ -216,19 +216,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
()
{
$bid
=
$_POST
[
'book'
][
'bid'
];
...
...
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