views

merlinofchaos's picture

Project Wanted

This is a really simple little module that probably is no more than 20 lines of code "Mark View Read".

It provides a menu_callback that provides a button to mark a view read, given the view name or vid as the argument. For bonus points, you could use hook_views_pre_view() to automatically add this button to any view that uses the unread filter.

Anybody up to spending a few hours doing this?

Read more
robertDouglass's picture

Adding to existing arrays?

Given this existing code:

function node_views_tables() {
  $tables['node'] = array(
    'name' => 'node',
    'provider' => 'internal', // won't show up in external list.
    'fields' => array(
      'title' => array(
        'name' => t('Node: Title'),
        'handler' => array(
          'views_handler_field_nodelink'           => t('Normal'),
          'views_handler_field_nodelink_with_mark' => t('With updated mark')
        ),
        'sortable' => true,
        'addlfields' => array('changed'),
        'help' => t('Display the title of the node.'),
      ),
Read more
Subscribe with RSS Syndicate content