Problem/Motivation

Drupal modules can't be disabled, just uninstalled. For that reason, it makes sense to be able to disable the functionality temporarily.

So we should add an "enabled" (true by default) option. If disabled, the field should not be shown in the user profile and no redirect should happen. We should escape early everywhere.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

anybody created an issue. See original summary.

anybody’s picture

Assigned: grevil » Unassigned
anybody’s picture

Assigned: Unassigned » lrwebks

Should be super easy, just a config setting and very early return.

lrwebks made their first commit to this issue’s fork.

anybody’s picture

Assigned: lrwebks » Unassigned
Status: Active » Reviewed & tested by the community

PERFECT, thank you!

anybody’s picture

Assigned: Unassigned » lrwebks
Status: Reviewed & tested by the community » Needs work

Ah sorry we need an update hook to set enabled TRUE in the config!

anybody’s picture

Assigned: lrwebks » Unassigned
Issue tags: +Novice

Anyone can do this, but maybe @lrwebks also :)

schillerm made their first commit to this issue’s fork.

schillerm’s picture

Status: Needs work » Needs review

Hope that is ok.. please review.

anybody’s picture

Status: Needs review » Needs work

Thanks, I left a comment.

schillerm’s picture

Status: Needs work » Needs review
anybody’s picture

Status: Needs review » Needs work

Still wrong. @lrwebks can you please fix it finally?

lrwebks’s picture

Status: Needs work » Needs review
anybody’s picture

Status: Needs review » Reviewed & tested by the community

Thank you!!

anybody’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.