Expose blog information to Views
level02 - January 13, 2008 - 18:06
| Project: | Blog Information |
| Version: | 5.x-2.4 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
This code makes two fields available in views
- Bloginfo: Title
- Bloginfo: Description
This code works but doesn't format the output from the blog description as the user selects (Filtered, Full HTML, PHP code, ...) it just spits out raw data. Also working on option to show blog title 'As link' (to 'User's Blog').
/**
* Implementation of hook_views_tables().
*
* Exposes blog information to the views system.
*/| Attachment | Size |
|---|---|
| bloginfo_views_tables.txt | 770 bytes |

#1
Thanks for this code. Awesome.
I put this code in the bloginfo.module, but nothing happened. I had to disable and re-enable the bloginfo module and clear site cache.
Thank you