We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4019445 + bbe3955 commit 4c44763Copy full SHA for 4c44763
civicrm.module
@@ -60,11 +60,16 @@ function civicrm_permission() {
60
61
CRM_Core_Config::singleton();
62
63
- $permissions = CRM_Core_Permission::basicPermissions();
+ $permissions = CRM_Core_Permission::basicPermissions(FALSE, TRUE);
64
$perms_array = array();
65
- foreach ($permissions as $perm => $title) {
+ foreach ($permissions as $perm => $attr) {
66
+ $title = array_shift($attr);
67
+ $description = array_shift($attr);
68
//order matters here, but we deal with that later
69
$perms_array[$perm] = array('title' => $title);
70
+ if ($description) {
71
+ $perms_array[$perm]['description'] = $description;
72
+ }
73
}
74
return $perms_array;
75
0 commit comments