Issue #2062585 by sergeypavlenko: Remove Unused local variables from /core/modules/node/node.module.

8.0.x
Alex Pott 2013-08-14 07:06:54 -05:00
parent 56f9e47f37
commit 6a604e04f6
1 changed files with 1 additions and 4 deletions

View File

@ -807,7 +807,7 @@ function node_permission() {
);
// Generate standard node permissions for all applicable node types.
foreach (node_permissions_get_configured_types() as $name => $type) {
foreach (node_permissions_get_configured_types() as $type) {
$perms += node_list_permissions($type);
}
@ -2264,9 +2264,6 @@ function node_query_node_access_alter(AlterableInterface $query) {
if (!$op = $query->getMetaData('op')) {
$op = 'view';
}
if (!$langcode = $query->getMetaData('langcode')) {
$langcode = FALSE;
}
// If $account can bypass node access, or there are no node access modules,
// or the operation is 'view' and the $account has a global view grant