Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 600 Bytes

DrupalPractice.General.AccessAdminPages.md

File metadata and controls

13 lines (7 loc) · 600 Bytes

Pattern: Inconsistent access in hook_menu()

Issue: -

Description

Throws a warning if the "access administration pages" string is found in hook_menu().

The administration menu callback should probably use "administer site configuration" - which implies the user can change something - rather than "access administration pages" which is about viewing but not changing configurations.

Further Reading