Closed (fixed)
Project:
ACL
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2015 at 11:51 UTC
Updated:
10 Aug 2023 at 14:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
heykarthikwithuRemoved the unused variables
$button_nameand$path.Comment #3
salvisHave you checked whether these also appear in the D8 version? The latest version always needs to go first.
module_load_include() has a side effect. Removing the call probably breaks ACL.
We may be able to save the call to drupal_get_path() depending on what we get back from module_load_include().
Blindly going through the code base and mechanically removing everything flagged by some code inspection tool is a waste of maintainer time.
Comment #4
heykarthikwithurerolled the patch.
1.
$button_name = 'acl_' . $form['acl_id']['#value'];$button_name is no more used in the code base, so this can be removed.
2.
$path = module_load_include($type, 'acl');$path variable is no more used in the code base. so this is replaced with
module_load_include($type, 'acl');So this works fine :)
Comment #5
ey commentedThis is a reasonable patch. It makes the code cleaner and has no impact on the functionality.
Comment #7
salvisThank you, heykarthikwithu and Елин Й.!
Comment #9
salvisWell, I guess I misinterpreted #4.
Comment #11
salvis