Skip to content

Instantly share code, notes, and snippets.

@alexfinnarn
Last active August 23, 2018 22:36
Show Gist options
  • Save alexfinnarn/d053b1af2fa991cc457e7d5416c8fcbd to your computer and use it in GitHub Desktop.
Save alexfinnarn/d053b1af2fa991cc457e7d5416c8fcbd to your computer and use it in GitHub Desktop.
user role config info hook
<?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