You are here

function node_entity_diff_options in Diff 7.3

Implements hook_entity_diff_options() on behalf of the Node module.

1 call to node_entity_diff_options()
node_entity_diff in ./diff.module
Implements hook_entity_diff() on behalf of the Node module.

File

./diff.module, line 716
Provides functionality to show a diff between two node revisions.

Code

function node_entity_diff_options($entity_type) {
  if ($entity_type == 'node') {
    $options = array(
      'title' => t('Title field'),
      // Author field is either the owner or revision creator, neither capture
      // a change in the author field.
      'author' => t('Author'),
      'revision_author' => t('Revision author'),
      'type' => t('Node type'),
      'publishing_flags' => t('Publishing options'),
      // More fields that currently can not be tracked.
      'created' => t('Created date'),
      'changed' => t('Updated date'),
      'revision_timestamp' => t('Revision timestamp'),
    );
    if (module_exists('comment')) {
      $options['comment'] = t('Comment setting');
    }
    return $options;
  }
}