PHPackages                             as-cornell/as\_user\_options - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. as-cornell/as\_user\_options

ActiveDrupal-custom-module[Utility &amp; Helpers](/categories/utility)

as-cornell/as\_user\_options
============================

Provides fine-grained control over links in user toolbar.

v2.0.1(2mo ago)01.1k↓50%GPL-3.0-or-laterPHP

Since Oct 14Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/as-cornell/as_user_options)[ Packagist](https://packagist.org/packages/as-cornell/as_user_options)[ Docs](https://communications.as.cornell.edu)[ RSS](/packages/as-cornell-as-user-options/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)DependenciesVersions (11)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/80831ba486fb0bd54b4d4fe90127500fb547a6e568dbe6e97f71ed1d8f63716d/68747470733a2f2f706f7365722e707567782e6f72672f61732d636f726e656c6c2f61735f757365725f6f7074696f6e732f76)](https://packagist.org/packages/as-cornell/as_user_options)

AS USER OPTIONS (as\_user\_options)
===================================

[](#as-user-options-as_user_options)

INTRODUCTION
------------

[](#introduction)

Provides fine-grained control over links in user toolbar and other user-related configurations.

- remove access to edit profile and view profile for specific roles
- Hide user tab for all roles, if checked
- Hide 'Shortcuts' for all roles, if checked
- Hide 'Manage' for users who are faculty, student, or staff who are not also editor or contributor
- Hide 'View profile' for all roles, if checked
- Hide 'Edit profile' for all roles, if checked

### Technical Approach

[](#technical-approach)

This module uses Drupal's alter hooks to modify the toolbar and user menu before they are rendered. For toolbar items (Shortcuts, Manage), the module uses `hook_toolbar_alter()` to completely remove items from the render array using `unset()`, ensuring they are not rendered at all rather than just hidden with CSS. For user profile links (View profile, Edit profile), the module uses `hook_preprocess_links__toolbar_user()` to remove specific links from the user menu. User login tabs are controlled via `hook_menu_local_tasks_alter()` which sets `#access` to FALSE for tab items. All configurations are stored in Drupal's configuration system and can be managed through the admin interface.

CONFIGURATION
-------------

[](#configuration)

- Enable the module as you would any other module
- Configure the global module settings: /admin/config/people/as-user-options-settings

MAINTAINERS
-----------

[](#maintainers)

Current maintainers for Drupal 10:

- Mark Wilson (markewilson)

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance84

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~55 days

Recently: every ~104 days

Total

10

Last Release

80d ago

Major Versions

v1.0.8 → v2.0.02026-02-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/f17dcdbbef5d086a5058ec138bc2f825149a5711e83709868f43494eef805b51?d=identicon)[markewilson](/maintainers/markewilson)

---

Top Contributors

[![markewilson](https://avatars.githubusercontent.com/u/7050965?v=4)](https://github.com/markewilson "markewilson (26 commits)")

### Embed Badge

![Health badge](/badges/as-cornell-as-user-options/health.svg)

```
[![Health](https://phpackages.com/badges/as-cornell-as-user-options/health.svg)](https://phpackages.com/packages/as-cornell-as-user-options)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
