Skip to content

Commit

Permalink
Fix config declaration, don’t translate menu item description
Browse files Browse the repository at this point in the history
Fix config declaration so module is properly uninstalled.
Don’t translate menu item description.
  • Loading branch information
bugfolder committed Dec 17, 2020
1 parent 0478cb9 commit 09ba49b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions role_help.module
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function role_help_permission() {
function role_help_menu() {
$items['admin/people/role-help'] = array(
'title' => 'Role help',
'description' => t('Display all roles that have help text descriptions.'),
'description' => 'Display all roles that have help text descriptions.',
'page callback' => 'backdrop_get_form',
'page arguments' => array('role_help_admin_page'),
'file' => 'role_help.admin.inc',
Expand Down Expand Up @@ -83,6 +83,7 @@ function role_help_config_info() {
'label' => t('Role Help settings'),
'group' => t('Configuration'),
);
return $prefixes;
}


Expand Down Expand Up @@ -212,7 +213,7 @@ function role_help_form_user_admin_role_alter(&$form, &$form_state) {
*
* Save the summary and help text for the role and then return to the roles listing.
*
* @See user_admin_role_submit().
* @See user_admin_role_submit()
*/
function role_help_user_admin_role_submit($form, &$form_state) {
// Perform the original handling from user_admin_role_submit().
Expand Down

0 comments on commit 09ba49b

Please sign in to comment.