Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Features
- select which roles can see the Toolbar
Available Tags
- toolbarrole
Automatic extraction of patterns files status
Yes, supported in versions >= 7.x-2.x
Examples
toolbarrole Tag
# YAML Toolbar Pattern
# QScience
# the role name should not be in both of the addroles and delroles.
# administrator should not be in addroles and delroles.
# if 'authenticated user' is in addroles, most of the roles will can see the toolbar though they don't have the "access toolbar" permission themselve.
# if a role can see toolbar because of the 'authenticated user' has the "access toolbar" perm, del this role will give the error:" the role does not have the permission yet".
# so using authenticated user should be careful.
info:
title: Toolbarrole (modify)
description: deside what kind of users (roles) can see the toolbar.
author: Rui
category: Toolbar
version: 1.0
core: 7.x
author_email: xrfind@gmail.com
actions:
- modify:
tag: toolbarrole
addroles:
- anonymous user
#- authenticated user
#- other roles
delroles:
#- anonymous user
#- authenticated user
#- other roles