Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
ff0f94d9
Commit
ff0f94d9
authored
Jun 05, 2013
by
alexpott
Browse files
Issue
#1992428
followup by andypost: Convert Roles management to a Controller.
parent
17698412
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/user/user.admin.inc
View file @
ff0f94d9
...
...
@@ -460,24 +460,3 @@ function theme_user_permission_description($variables) {
}
}
}
/**
* Page callback: Lists roles and allows to reorder them.
*
* @see user_menu()
*/
function
user_admin_roles_list
()
{
return
Drupal
::
entityManager
()
->
getListController
(
'user_role'
)
->
render
();
}
/**
* Page callback: Presents the role creation form.
*
* @see user_menu()
*/
function
user_admin_role_add
()
{
drupal_set_title
(
t
(
'Add role'
));
$role
=
entity_create
(
'user_role'
,
array
());
return
entity_get_form
(
$role
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment