Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
292
Merge Requests
292
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
11bcbce3
Commit
11bcbce3
authored
Feb 27, 2013
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1784806
by beltofte: Standardize capitalization on actions in book: 'edit order and titles'.
parent
09be764c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
core/modules/book/book.admin.inc
core/modules/book/book.admin.inc
+4
-4
core/modules/book/book.module
core/modules/book/book.module
+2
-2
core/modules/book/lib/Drupal/book/Tests/BookTest.php
core/modules/book/lib/Drupal/book/Tests/BookTest.php
+1
-1
core/modules/book/templates/book-navigation.tpl.php
core/modules/book/templates/book-navigation.tpl.php
+1
-1
No files found.
core/modules/book/book.admin.inc
View file @
11bcbce3
...
...
@@ -27,7 +27,7 @@ function book_admin_overview() {
);
$links
=
array
();
$links
[
'edit'
]
=
array
(
'title'
=>
t
(
'
e
dit order and titles'
),
'title'
=>
t
(
'
E
dit order and titles'
),
'href'
=>
'admin/content/book/'
.
$book
[
'nid'
],
);
$row
[]
=
array
(
...
...
@@ -305,17 +305,17 @@ function theme_book_admin_table($variables) {
);
$links
=
array
();
$links
[
'view'
]
=
array
(
'title'
=>
t
(
'
v
iew'
),
'title'
=>
t
(
'
V
iew'
),
'href'
=>
$href
,
);
if
(
$access
)
{
$links
[
'edit'
]
=
array
(
'title'
=>
t
(
'
e
dit'
),
'title'
=>
t
(
'
E
dit'
),
'href'
=>
"node/
$nid
/edit"
,
'query'
=>
$destination
,
);
$links
[
'delete'
]
=
array
(
'title'
=>
t
(
'
d
elete'
),
'title'
=>
t
(
'
D
elete'
),
'href'
=>
"node/
$nid
/delete"
,
'query'
=>
$destination
,
);
...
...
core/modules/book/book.module
View file @
11bcbce3
...
...
@@ -479,11 +479,11 @@ function _book_add_form_elements(&$form, &$form_state, Node $node) {
if
(
user_access
(
'create new books'
)
&&
(
$nid
==
'new'
||
(
$nid
!=
$node
->
book
[
'original_bid'
])))
{
// The node can become a new book, if it is not one already.
$options
=
array
(
$nid
=>
'<'
.
t
(
'create a new book'
)
.
'>'
)
+
$options
;
$options
=
array
(
$nid
=>
t
(
'- Create a new book -'
)
)
+
$options
;
}
if
(
!
$node
->
book
[
'mlid'
])
{
// The node is not currently in the hierarchy.
$options
=
array
(
0
=>
'<'
.
t
(
'none'
)
.
'>'
)
+
$options
;
$options
=
array
(
0
=>
t
(
'- None -'
)
)
+
$options
;
}
// Add a drop-down to select the destination book.
...
...
core/modules/book/lib/Drupal/book/Tests/BookTest.php
View file @
11bcbce3
...
...
@@ -178,7 +178,7 @@ function checkBookNode(Node $node, $nodes, $previous = FALSE, $up = FALSE, $next
}
if
(
$up
)
{
$this
->
assertRaw
(
l
(
'
u
p'
,
'node/'
.
$up
->
nid
,
array
(
'html'
=>
TRUE
,
'attributes'
=>
array
(
'title'
=>
t
(
'Go to parent page'
)))),
'Up page link found.'
);
$this
->
assertRaw
(
l
(
'
U
p'
,
'node/'
.
$up
->
nid
,
array
(
'html'
=>
TRUE
,
'attributes'
=>
array
(
'title'
=>
t
(
'Go to parent page'
)))),
'Up page link found.'
);
}
if
(
$next
)
{
...
...
core/modules/book/templates/book-navigation.tpl.php
View file @
11bcbce3
...
...
@@ -44,7 +44,7 @@
<?php
endif
;
?>
<?php
if
(
$parent_url
)
:
?>
<li
class=
"up"
>
<a
href=
"
<?php
print
$parent_url
;
?>
"
title=
"
<?php
print
t
(
'Go to parent page'
);
?>
"
>
<?php
print
t
(
'
u
p'
);
?>
</a>
<a
href=
"
<?php
print
$parent_url
;
?>
"
title=
"
<?php
print
t
(
'Go to parent page'
);
?>
"
>
<?php
print
t
(
'
U
p'
);
?>
</a>
</li>
<?php
endif
;
?>
<?php
if
(
$next_url
)
:
?>
...
...
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