This tag is for questions about the built-in node revision feature of Drupal.

learn more… | top users | synonyms

0
votes
0answers
15 views

Custom entity api development adding a revision to entity lead to broken views handlers

(note: see extra info at bottom) I have a chain of entities which were joining together in Views nicely by defining their relationships as joins in hook_views_data_alter (note - I had actually used ...
0
votes
0answers
12 views

How to update revision timestamp automatically?

When I revise content everything changes that I want to change, except the time edited. I would like it to do it automatically instead of having to change the time myself. any thoughts?
0
votes
0answers
13 views

Workbench Moderation - Saving

What is the right way of saving nodes for workbench moderation. If I save using wrapper, then changes are not applied. If I save using node_save, it is the same case. Also how can I save over current ...
0
votes
1answer
29 views

How not allow a user to edit content after being submitted to review?

I'm looking for a solution that does not allow a user to edit content after being submitted for review. I'm working with two roles: Content Creator and Reviewer. If the reviewer disapprove the ...
-1
votes
1answer
26 views

How can I force the 'Revision Information' tab to be open upon content editing? [closed]

with Drupal 7 , how can I force the "Revision Information" tab to be open upon content editing so that the user sees the box for Revision log message easily? Right now the box is closed and he has ...
1
vote
0answers
15 views

Services + Entity Reference - New revision vs. published revision

I'm using Services to deploy nodes from Site A to Site B, using UUID as the key to keep them synced. If the node exists on Site B, I do a PUT to update it, and if it doesn't exist, I do a POST to ...
1
vote
1answer
22 views

Remove “Revision Information” Section?

For my use case, I don't need this Revision information section to appear on my page. (I am using revision, so it has to be enabled on the content type). What options are there to 1) disable this ...
0
votes
1answer
35 views

How does one add revision information to custom built entities?

I'm looking for help in gentle/simple terms for how to add revision information to my custom entities. This is maybe my fifth or sixth attempt to do this and every time I get lost and overwhelmed by ...
1
vote
0answers
78 views

Drupal commerce product revisions

I'm searching for a module to delete product variations revisions?
0
votes
0answers
44 views

Revision not working for content type using workbench moderation module

We have 7-8 content type. We are using workbench moderation module for revision and create draft. This module works fine with all content type except one content type. All settings are same for all ...
0
votes
1answer
40 views

give permission of create new revision to specific roles

I need to give the permission of "create new revision" to a specific role. but nothing related to this issue appeares in permissions page! I've installed Revisioning module too. how can I set it?
0
votes
1answer
20 views

Views of Node Revision with Revision Update Date Expose filter

I have a Views of Node Revision with Revision Update Date Exposed. Exposed form rendered as "textfield" widget by default, I want to have Date popup calendar instead.
0
votes
1answer
55 views

Exposed Filter Filtering on Unpublished Revision

I have a content type with a massive number of fields. The primary way this data is seen is through a view with several exposed filters (looking at the fields) which provides a list of matching ...
0
votes
0answers
31 views

Node save metatags defaults to english

Between node revisions I lost the metatags of some nodes. They are still there in the old revisions. My idea was to retrieve these metatags from the old revisions and create a new revision. I managed ...
0
votes
1answer
56 views

Module that allows to compare, edit and/or merge revisions

At the moment I have installed on my site the Diff module, which allows me to compare the content of 2 revisions but I need a module that allows me to not only see the differences between revisions, ...
0
votes
0answers
46 views

Tracking changes of child entities (Revisions, Entity Reference)

Is there a way to track the changes of the child entities referenced from Entity Reference fields and to present these changes to the user when looking at the parent entity?
0
votes
0answers
54 views

How can I change view data after the query is executed but before it's output?

I tried hook_views_pre_render but it's not acting as I would have expected. What I'm doing is taking the view data after it has been executed, looking at the result, and then changing the result. ...
0
votes
0answers
30 views

revert to specific revision programmatically using rules

How would I set up a rule to be able to reset a node to their original state after for example flagging a node? I tried it but it seems that when you try to add an action to 'set a data value' rules ...
0
votes
0answers
61 views

programmatically creating a new node without a revision

I create new nodes programmatically this way: $node = new stdClass(); $node->type = "page"; node_object_prepare($node); $node->title = 'test'; $node->uid = 1; $node->changed_by = 1; ...
2
votes
2answers
360 views

How are node and node_revision tables related?

I've noticed that the following does not work to unpublish nodes: db_update('node') ->fields(array('status' => 0)) ->condition('nid', $array_of_nids, 'IN') ->execute(); But it ...
0
votes
0answers
17 views

How to get/view the head revision for all nodes within a time period?

I have a drupal site which has various different content types, all of which can have revisions. I want to be able to display somewhere, whether in a view or some kind of output, a snapshot of the ...
1
vote
2answers
247 views

Edit old revision without changing the current revision

I'm using revisions to keep a public archive of changes in my nodes. Is it possible for me to edit an old revision of a node (both the message and the fields) directly, and not change the current ...
1
vote
1answer
59 views

Get a list of revision IDs for any given entity?

What's the most uniform method for getting a list of revision IDs for any given entity, programmatically?
0
votes
0answers
21 views

Open node by version id in drupal 6

I am basically looking to view a node by it's version id (vid). I am not looking to load the node programmatically. For ex. Node id is "xyz" which can be loaded by /node/nid. I need something like ...
0
votes
1answer
39 views

hook_url_outbound_alter only for links in node body

I'm building a site with drafts/revisions as a major component. For now I'm using hook_url_outbound_alter to check if "/draft" is at the end of the current URL, and if so to append "/draft" to all ...
0
votes
2answers
166 views

How to pull node history into a view

Is there a way to add a relationship to the node history table in views. If not, is there a module which can do it? As it turns out the history table is already available under views as part of the ...
0
votes
1answer
100 views

Drupal 7 Node Revisions per Role

I have created a new role 'news contributor'. I have created a new content type 'news'. The 'news contributor' role has permissions enabled to view, revert, delete revisions. However, this setting ...
0
votes
1answer
34 views

Edit content before publishing

How do I give an authenticate user the permission to edit some contents before publishing it. So currently he has the permission to edit it, but he has to publish it first and then he gets the edit ...
1
vote
1answer
64 views

Why do we duplicate field data in the field_revision_* tables when revisions are disabled?

Even with revisions turned off for a given content type, the field_revision_* tables for the fields each contain a single record that matches the corresponding record in the corresponding field_data_* ...
0
votes
1answer
222 views

Saving and Publishing nodes to different domains based on revision

Need some creative help (or obvious answer/new module I'm missing). Still rusty in Drupal, so bear with me here... Using: Domain Access, Revisioning, and custom module using hook_node_presave() ...
0
votes
0answers
25 views

Linkchecker and revision

I am using linkchecker and revisioning modules on a website with plenty of redirects. At the moment when linkchecker detects a redirect, it changes the link in the body field...This creates a new ...
2
votes
1answer
56 views

Do any comment modules play well with revisioning?

I'm faced with a situation where we need to keep track of which node revision a comment was made for, so that we can display whether the comment was made for a newer/older revision, or for the one ...
1
vote
2answers
600 views

How to show pending (unpublished) revision fields in views in Drupal 7?

I am using Drupal 7 and I have a CT with revisioning and workbench moderation enabled. I want to create a view for administrators, showing the latest revision of the nodes with various fields, even ...
0
votes
2answers
176 views

How to implement revisioning in my own module?

In my module I store some node related data in a specific table of the database. Now I want to implement the revisioning system, so I create my_table_revision with the same information and a new ...
0
votes
1answer
60 views

Is it OK to remove field values or revisions by deleting individual lines from the field table in the database?

I have been testing my site (with revisions enabled) for several days now and I have noticed that my field related database tables are filling up with revision info. Can I simply delete these line ...
1
vote
3answers
1k views

Why entity_metadata_wrapper->save() doesn't update node's revision?

I'm developing a module to update nodes(enable revision). It looks like this. $nodes = node_load_multiple(array(), array('type' => $bundleType)); foreach ($ndoes as $node){ $w = ...
0
votes
1answer
71 views

Administration UI Notification of New Revisions

(Warning, new to Drupal) I'm customizing an administration theme to be designed to our needs. 1) One of the things we would like to have is a visual notification of a new REVISION (content needing ...
1
vote
2answers
1k views

How to get node content in an sql query?

I see that in D6 the node table has only the title of the node. How to query database to get the body (content) of a particular node? Update: I figured out the content bodies are stored in ...
2
votes
1answer
32 views

Does the 'field table' always hold the current value? Or is it only in newest revision?

As I understand it, the current value for every field can be found in corresponding data table (e. g. field_data_body) and the history of its changes in corresponding revision table ...
1
vote
0answers
84 views

How do I tell if the current revision is the published one

I'm loading each entity and trying to see whether or not the entity is the latest revision. $query = db_select($entity_items['revision table'], 'revision') ->fields('revision', ...
2
votes
1answer
288 views

Getting all revisions of an entity with EntityFieldQuery

I'm trying to get all revisions of an entity with EntityFieldQuery. Here's my code: function entity_hash_queue($entity_restrict = NULL) { if ($entity_restrict) { $entity_info = ...
2
votes
1answer
507 views

Can I avoid creating a new revision of every attached field upon entity save?

I have created a custom entity with several properties and several attached fields. When I load a instance of my custom entity, update a property of the entity (e.g UID) and save it a new revision of ...
0
votes
2answers
51 views

Module to suggest node revision to node author

Is there a module which facilitates functionality of allowing users to suggest node revision to author and author finally can publish the revised suggestion. Till the author is not accepting or ...
0
votes
1answer
67 views

How to change the url pattern of user revisions?

How can i change the url pattern of a user revision ? I want to change users/jon-doe/revisions/123/view to users/jon-doe/archive/123/view There is no option in pathauto to influence the url ...
0
votes
1answer
358 views

Get latest revision vid in views

I'm using the revisioning module to handle the status of nodes. As far as the nodes go, they've been working perfect and the work flow is exactly what I want. However, I'm running into an issue when ...
0
votes
1answer
271 views

How to Limit Node Revisions in Drupal7

I added the diff module that keeps all node Revisions (it seems that I can't limit the number of Revisions to keep). Is there a code I can use where I can set a limit of the number of Revisions to ...
2
votes
1answer
202 views

How can I moderate user's edits of user profile?

I need to create approval for editing a user's profile - I want all revisions to a profile to be subject to moderation. I have found module called User Revision, but that is not a solution for me as ...
0
votes
1answer
293 views

Delete old files from server when content is updated in Drupal7

When a node is updated by replacing a new file upload, old files exist on the server maintaining versions.I want delete old files from server when content is updated in Drupal7
1
vote
1answer
158 views

Drupal 7: Display Latest Revision's Author on the Admin Content Overview page with Admin Views Module

Does anyone know the methodology to display the author of the latest content revision, using the Admin Views module on the content overview page (e.g. /admin/content)? It's easy enough to display the ...
1
vote
1answer
148 views

Revision: “per node” version ID

I have revisions active for a content type, called e.g. "procedures". When a node of this type is revised, a new vid is assigned, which is a number independent of the number of revisions made on THAT ...