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
Description

This code makes two fields available in views

  1. Bloginfo: Title
  2. 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.
*/

AttachmentSize
bloginfo_views_tables.txt770 bytes

#1

ethanre - July 30, 2008 - 20:49

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

 
 

Drupal is a registered trademark of Dries Buytaert.