From 6397deaec8aac253ece926a11cc24769bd68c766 Mon Sep 17 00:00:00 2001 From: Sam Marshall Date: Tue, 9 Nov 2010 12:41:29 +0000 Subject: [PATCH] Roles MDL-23986 Added help to role archetype --- admin/roles/lib.php | 3 ++- lang/en/role.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/roles/lib.php b/admin/roles/lib.php index d8a492d5ce9..cd55ecfab32 100644 --- a/admin/roles/lib.php +++ b/admin/roles/lib.php @@ -777,12 +777,13 @@ class define_role_table_advanced extends capability_table_with_risks { } public function display() { + global $OUTPUT; // Extra fields at the top of the page. echo '
'; $this->print_field('name', get_string('name'), $this->get_name_field('name')); $this->print_field('shortname', get_string('shortname'), $this->get_shortname_field('shortname')); $this->print_field('edit-description', get_string('description'), $this->get_description_field('description')); - $this->print_field('menuarchetype', get_string('archetype', 'role'), $this->get_archetype_field('archetype')); + $this->print_field('menuarchetype', get_string('archetype', 'role').' '.$OUTPUT->help_icon('archetype', 'role'), $this->get_archetype_field('archetype')); $this->print_field('', get_string('maybeassignedin', 'role'), $this->get_assignable_levels_control()); echo "
"; diff --git a/lang/en/role.php b/lang/en/role.php index 372be9ed0f0..123f6770317 100644 --- a/lang/en/role.php +++ b/lang/en/role.php @@ -37,6 +37,7 @@ $string['allowroletoswitch'] = 'Allow users with role {$a->fromrole} to switch r $string['allowswitch'] = 'Allow role switches'; $string['allsiteusers'] = 'All site users'; $string['archetype'] = 'Role archetype'; +$string['archetype_help'] = 'The role archetype determines the permissions when a role is reset to default. It also determines any new permissions for the role when the site is upgraded.'; $string['archetypecoursecreator'] = 'ARCHETYPE: Course Creator'; $string['archetypeeditingteacher'] = 'ARCHETYPE: Teacher (editing)'; $string['archetypefrontpage'] = 'ARCHETYPE: Authenticated user on frontpage'; -- 2.43.0