Remove paragraph from $settings after `civictheme_automated_list_view_info` has run

Created on 4 February 2025, 18 days ago

Problem/Motivation

1. We have a hook `civictheme_automated_list_view_info` which allows a sub-theme or module to change the automated list view to a different view.
2. We use a $settings array variable to provide conditions on which view to use
3. We add the automated_list paragraph to be attached to settings but remove this before we run this hook
4. This means we only have the settings set in civictheme to work out which view to use, if we have extended this in the sub-theme we cannot use these

Proposed resolution

1. Remove paragraph after the hook has run that way we can get additional values from the paragraph which might have been added in sub-theme to determine the view

Data model changes

Feature request
Status

Active

Version

1.9

Component

Code

Created by

🇦🇺Australia RichardGaunt Melbourne

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

Comments & Activities

Production build 0.71.5 2024