Mica relations, publication workflow and languages

Skip to end of metadata
Go to start of metadata

Revisions

Node attributes:

  • nid: The unique node ID.
  • vid: The unique revision ID for the node.
  • revision_timestamp: The time the node’s last revision was created
  • log: The log message associated with the last revision of the node.

To load a specific revision:

To create a new revision:

To get list of revisions:

Publication workflow

Node reference creates a relationship to the current revision (using nid).

i18n

Use field_language() instead of $node->language because the language of this field is not always the language of the node.
http://api.drupal.org/api/drupal/modules--field--field.multilingual.inc/function/field_language/7

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.