node_revision.inc 980 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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',
  19. // @todo - unclear if this should be node or node_revision
  20. 'field' => 'status',
  21. ),
  22. ),
  23. 'path_field' => array(
  24. 'id' => 'vid',
  25. 'table' => 'node_revision',
  26. 'field' => 'vid',
  27. 'exclude' => TRUE,
  28. 'alter' => array(
  29. 'alter_text' => 1,
  30. 'text' => 'node/[nid]/revisions/[vid]/view',
  31. ),
  32. ),
  33. 'path_fields_supplemental' => array(
  34. array(
  35. 'id' => 'nid',
  36. 'table' => 'node',
  37. 'field' => 'nid',
  38. 'exclude' => TRUE,
  39. 'link_to_node' => FALSE,
  40. ),
  41. ),
  42. );