Add an alter hook after categories have been loaded

Created on 24 April 2018, over 7 years ago
Updated 26 April 2018, over 7 years ago

Hello,

For Simplenews OG - https://www.drupal.org/project/simplenews_og - I would need an alter hook after categories have been loaded.
I suggest to add one in simplenews_categories_load_multiple().

Basically I need to restrict access to some categories (when og_access is present) and attach additional data (og_membership, OG group entity) when loading a simplenews category which is related to an OG group.

Here is a simple patch. Any advice is welcome.

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇧🇪Belgium herved

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.

Production build 0.71.5 2024