Downloads

Download tar.gz 19.56 KB
MD5: 7f5c6d1eb383caf8bd8919aed9c14e2d
SHA-1: f758af72d3f9fb1219082055df9a5700f96a8161
SHA-256: b62caac5a74adc87a5b79085db92a610b498d7ae3fe56cc5e0c3231001d450ae
Download zip 21.71 KB
MD5: a7d7d73f4c23c77bdcb72cf62482cce8
SHA-1: 7528a8c82ccf482ca1167bfab8a0d3a0e7418c5f
SHA-256: 026dffc00064793166349416f80ee01d6f9b0d00e25b0f10132f007e7950bf4f

Release notes

This version of Views Bookmark significantly updates the views integration with the following changes:

- Removed Node: Node ID argument provided by views bookmark. This argument seemed to have accidentally slipped in with the Drupal 5 port of Views Bookmark. Views provides a Node: ID argument which should be used instead. Views stored in the database are automatically updated. Views stored in hook_default_views() will need to be updated if they use this argument.

- Changed Bookmark filter from assuming current user to allowing an option for either current user or any user. This requires a change to existing views. Views in the database are automatically updated. Views stored in hook_default_views() may be updated by changing the value of the filter from an empty string to "***CURRENT_USER***".

- Added filter for bookmark timestamp
- Added sort for bookmark timestamp
- Added sort for bookmark count
- Increased efficiency of user name lookup by doing a table join rather than seperate user_loads.

Upgrading hook_default_views() implementations.

Note that this is only necessary if you've coded views into a custom or contrib module. Normal users who keep views stored in the database don't need to worry because their views are updated using update.php. Views bookmark will inform you if any views need to be updated manually.

If your default views contain the Node: Node ID argument provided by Views Bookmark. Your default view would contain something like the following:

  'argument' => array (
    '0' => array (
      'vid' => 11,
      'type' => 'node_nid', // Change this line to 'nid'.
      'argdefault' => 2,
      'title' => '',
      'options' => '', // Change this line to 0.
      'position' => 0,
      'wildcard' => '',
      'wildcard_substitution' => '',
      'id' => 'node_nid', // Change this line to 'nid'.
    ),
  ),

Change this to:

  'argument' => array (
    '0' => array (
      'vid' => 11,
      'type' => 'nid',
      'argdefault' => 2,
      'title' => '',
      'options' => 0,
      'position' => 0,
      'wildcard' => '',
      'wildcard_substitution' => '',
      'id' => 'nid',
    ),
  ),

If your default views contain the Bookmark: x Marked filter, you'll need to update your default views as follows:

  'filter' => array (
    '0' => array (
      'vid' => 11,
      'tablename' => '',
      'field' => 'views_bookmark_nodes_1.uid',
      'value' => '', // Change this line to 0.
      'operator' => 'IS NOT',
      'options' => '', // Change this line to '***CURRENT_USER***'.
      'position' => 0,
      'id' => 'views_bookmark_nodes_1.uid',
    ),  
  ),

Should be updated to:

  'filter' => array (
    '0' => array (
      'vid' => 11,
      'tablename' => '',
      'field' => 'views_bookmark_nodes_1.uid',
      'value' => 0,
      'operator' => 'IS NOT',
      'options' => '***CURRENT_USER***',
      'position' => 0,
      'id' => 'views_bookmark_nodes_1.uid',
    ),  
  ),
Created by: quicksketch
Created on: 12 Nov 2007 at 23:12 UTC
Last updated: 12 Nov 2007 at 23:24 UTC
New features
Unsupported

Other releases