| Download | Size | md5 hash |
|---|---|---|
| views_bookmark-5.x-1.4-beta1.tar.gz | 19.56 KB | 7f5c6d1eb383caf8bd8919aed9c14e2d |
| views_bookmark-5.x-1.4-beta1.zip | 21.71 KB | a7d7d73f4c23c77bdcb72cf62482cce8 |
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:
<?php
'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:
<?php
'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:
<?php
'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:
<?php
'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',
),
),
?>