This project is not covered by Drupal’s security advisory policy.
Module to allow site builders specify a callback function in Views to generate the title dynamically.
Scenarios
- Account page (Member I follow for own profile and Members followed by XXX while viewing another user's profile)
- Displaying total number of results in title
- Displaying value from one of the filters (normal/faceted) like Hotels in [Location]
Normally we implement hook_views_pre_render() in our custom modules to change this. But that is invoked every-time for all the views and we have to add conditions to restrict it to our desired view only.
With this module I'm trying to reduce this pain by allow developers and site builders to specify the callback function in which they can write the code to build the title. This will be stored in views definition and then will be invoked in hook_views_pre_render() implemented in only this module. I am using display_extender to get and store callback function name and then set that in $view in pre_execute() which than later is used by hook_views_pre_render().
Taken inspiration from views_access_callback and cpv modules.
Project information
- Seeking new maintainer
The current maintainers are looking for new people to take ownership. - No further development
No longer developed by its maintainers. - Module categories: Developer Tools, Search Engine Optimization (SEO)
- 1 site reports using this module
- Created by nikunjkotecha on , updated
- Drupal 10 is here!
No plan for D8 or D9
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
Development version: 7.x-1.x-dev updated 12 Sep 2016 at 16:48 UTC