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

toemaz’s picture

Status: Active » Closed (duplicate)

A possible patch is provided on issue http://drupal.org/node/182997

moshe weitzman’s picture

well, in 5.x there is a tables_alter() hook. we will surely want that in 6 if it isn't there already.