Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
ff0f94d9
Commit
ff0f94d9
authored
Jun 05, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1992428
followup by andypost: Convert Roles management to a Controller.
parent
17698412
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
core/modules/user/user.admin.inc
core/modules/user/user.admin.inc
+0
-21
No files found.
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