Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2007 at 15:15 UTC
Updated:
4 Dec 2007 at 14:51 UTC
I came across with a necessity add such fields as status and moderate into the view in order to customize its output based upon them. I did find such filters but there are no fields.
My proposition is to add node common flags into the views_node.inc file just like this:
'moderate' => array(
'name' => t('Node: Moderate'),
'help' => t('Display the Moderation flag of a node.')
),
'status' => array(
'name' => t('Node: Published'),
'help' => t('Display the Published flag of a node.')
),
I found that it is impossible to extend node table via views_tables hook from my own module so I had to patched the module ... or am I missing something?
Thanks.
Comments
Comment #1
toemaz commentedA possible patch is provided on issue http://drupal.org/node/182997
Comment #2
moshe weitzman commentedwell, in 5.x there is a tables_alter() hook. we will surely want that in 6 if it isn't there already.