Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Custom Permissions automatically creates a machine name for each permission, avoiding needless complexity, with config_perms_generate_machine_name(), a simple function doing no more and no less than this:
strtolower(preg_replace('/[^a-zA-Z0-9_]+/', '_', $string))
This opens up the opportunity to use Sentence casing for the default permissions provided by Custom Permissions, but to keep it easy to use these permissions in code, the machine name form should be exposed for all saved permissions. (Since Drupal core does not extend this courtesy on the main permissions page.)
Open to patches or to arguing to leave well enough alone.
Comments
Comment #1
mlncn CreditAttribution: mlncn commented