Skip to main content
100%

user role config info hook

✓ Published0🌍 Public
Aalexfinnarn
Last edited Aug 23, 2018
Created on Aug 23, 2018

This example shows a Drupal-style configuration hook that defines user role settings for a site. It demonstrates how the `hook_config_info()` function registers two role prefixes, `developer` and `site_owner`, each with name and label keys and a shared group label. The code returns an array of prefix definitions, mapping each role to its metadata structure. It uses the Backdrop CMS configuration API, specifically the `config_info` hook pattern, to declare configurable items without any rendering or data visualization logic. The data source is the hardcoded PHP array of role definitions.

AI-generated description

Similar vizzes