Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
ba233dd3
Commit
ba233dd3
authored
Jun 22, 2005
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#25504
by kumo: fixed problem with the weights of book pages not being remembered.
parent
5c884370
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/book.module
modules/book.module
+1
-1
modules/book/book.module
modules/book/book.module
+1
-1
No files found.
modules/book.module
View file @
ba233dd3
...
...
@@ -281,7 +281,7 @@ function book_outline() {
$page
=
db_fetch_object
(
db_query
(
'SELECT * FROM {book} WHERE nid = %d'
,
$node
->
nid
));
$output
=
form_select
(
t
(
'Parent'
),
'parent'
,
$page
->
parent
,
book_toc
(
$node
->
nid
),
t
(
'The parent page in the book.'
));
$output
.
=
form_weight
(
t
(
'Weight'
),
'weight'
,
$
nod
e
->
weight
,
15
,
t
(
'Pages at a given level are ordered first by weight and then by title.'
));
$output
.
=
form_weight
(
t
(
'Weight'
),
'weight'
,
$
pag
e
->
weight
,
15
,
t
(
'Pages at a given level are ordered first by weight and then by title.'
));
if
(
$page
->
nid
)
{
$output
.
=
form_submit
(
t
(
'Update book outline'
));
...
...
modules/book/book.module
View file @
ba233dd3
...
...
@@ -281,7 +281,7 @@ function book_outline() {
$page
=
db_fetch_object
(
db_query
(
'SELECT * FROM {book} WHERE nid = %d'
,
$node
->
nid
));
$output
=
form_select
(
t
(
'Parent'
),
'parent'
,
$page
->
parent
,
book_toc
(
$node
->
nid
),
t
(
'The parent page in the book.'
));
$output
.
=
form_weight
(
t
(
'Weight'
),
'weight'
,
$
nod
e
->
weight
,
15
,
t
(
'Pages at a given level are ordered first by weight and then by title.'
));
$output
.
=
form_weight
(
t
(
'Weight'
),
'weight'
,
$
pag
e
->
weight
,
15
,
t
(
'Pages at a given level are ordered first by weight and then by title.'
));
if
(
$page
->
nid
)
{
$output
.
=
form_submit
(
t
(
'Update book outline'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment