Grant & Revoke functions so other modules can use TAC lite

Created on 26 June 2013, about 12 years ago
Updated 27 June 2025, 10 days ago

I really appreciate this little module. A while ago I wrote another module that used TAC lite to grant content access. I am now in the process of writing another module that grants & revokes access using TAC lite and thought it wise to share my code in the hopes that it gets committed so that other modules can reuse this modules functionality.

Two simple functions one to grant and the other revoke user access to terms controlled by TAC lite.

Grant function checks for validity of inputs, vocabulary, and term ids. The revoke assumes the saved terms were valid when created and so does not check them before removing. Both functions only save the account if there is a change to make. They return FALSE is there was an error otherwise return the modified user account.

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tinker

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia

    Thank you for contribution. πŸ‘
    Drupal 6 is no longer supported. πŸ€·β€β™‚οΈ
    Closing as outdated. πŸ”

Production build 0.71.5 2024