node_revision.inc 980 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * @file
  4. * Views wizard for node revision views.
  5. */
  6. $plugin = array(
  7. 'name' => 'node_revision',
  8. 'base_table' => 'node_revision',
  9. 'created_column' => 'timestamp',
  10. 'form_wizard_class' => array(
  11. 'file' => 'views_ui_node_revision_views_wizard.class.php',
  12. 'class' => 'ViewsUiNodeRevisionViewsWizard',
  13. ),
  14. 'title' => t('Content revisions'),
  15. 'filters' => array(
  16. 'status' => array(
  17. 'value' => '1',
  18. 'table' => 'node', // @todo - unclear if this should be node or node_revision
  19. 'field' => 'status',
  20. ),
  21. ),
  22. 'path_field' => array(
  23. 'id' => 'vid',
  24. 'table' => 'node_revision',
  25. 'field' => 'vid',
  26. 'exclude' => TRUE,
  27. 'alter' => array(
  28. 'alter_text' => 1,
  29. 'text' => 'node/[nid]/revisions/[vid]/view',
  30. ),
  31. ),
  32. 'path_fields_supplemental' => array(
  33. array(
  34. 'id' => 'nid',
  35. 'table' => 'node',
  36. 'field' => 'nid',
  37. 'exclude' => TRUE,
  38. 'link_to_node' => FALSE,
  39. ),
  40. ),
  41. );