views/default/roles/settings/account/role.php 1 location
|
@@ 19-23 (lines=5) @@
|
| 16 |
|
$roles_options = array(NO_ROLE => elgg_echo('roles:role:NO_ROLE')); |
| 17 |
|
|
| 18 |
|
$all_roles = roles_get_all_selectable_roles(); |
| 19 |
|
if (is_array($all_roles) && !empty($all_roles)) { |
| 20 |
|
foreach ($all_roles as $role) { |
| 21 |
|
$roles_options[$role->name] = $role->getDisplayName(); |
| 22 |
|
} |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
if (elgg_instanceof($user, 'user')) { |
| 26 |
|
?> |
views/default/roles/useradd.php 1 location
|
@@ 11-15 (lines=5) @@
|
| 8 |
|
$roles_options = array(NO_ROLE => elgg_echo('roles:role:NO_ROLE')); |
| 9 |
|
|
| 10 |
|
$all_roles = roles_get_all_selectable_roles(); |
| 11 |
|
if (is_array($all_roles) && !empty($all_roles)) { |
| 12 |
|
foreach ($all_roles as $role) { |
| 13 |
|
$roles_options[$role->name] = $role->getDisplayName(); |
| 14 |
|
} |
| 15 |
|
} |
| 16 |
|
?> |
| 17 |
|
<div class="elgg-module elgg-module-info elgg-module-info-roles"> |
| 18 |
|
<div class="elgg-head"> |