Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
61a62b27
Commit
61a62b27
authored
Dec 23, 2013
by
webchick
Browse files
Issue
#2160555
by Wim Leers: Disable Edit on admin pages.
parent
cef84c18
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/edit/edit.module
View file @
61a62b27
...
...
@@ -36,6 +36,12 @@ function edit_page_build(&$page) {
return
;
}
// In-place editing is only supported on the front-end.
$path
=
\
Drupal
::
request
()
->
attributes
->
get
(
'_system_path'
);
if
(
path_is_admin
(
$path
))
{
return
;
}
$page
[
'#attached'
][
'library'
][]
=
array
(
'edit'
,
'edit'
);
}
...
...
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