Last active
August 23, 2018 22:36
-
-
Save alexfinnarn/d053b1af2fa991cc457e7d5416c8fcbd to your computer and use it in GitHub Desktop.
user role config info hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_config_info(). | |
*/ | |
function backdrop_test_users_config_info() { | |
$prefixes = array(); | |
$prefixes['user.role.developer'] = array( | |
'name_key' => 'name', | |
'label_key' => 'label', | |
'group' => t('User roles'), | |
); | |
$prefixes['user.role.site_owner'] = array( | |
'name_key' => 'name', | |
'label_key' => 'label', | |
'group' => t('User roles'), | |
); | |
return $prefixes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment