comment.inc 1003 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * @file
  4. * Views wizard for comment views.
  5. */
  6. // Parent plugin.
  7. if (module_exists('comment')) {
  8. $plugin = array(
  9. 'name' => 'comment',
  10. 'base_table' => 'comment',
  11. 'created_column' => 'created',
  12. 'form_wizard_class' => array(
  13. 'file' => 'views_ui_comment_views_wizard.class.php',
  14. 'class' => 'ViewsUiCommentViewsWizard',
  15. ),
  16. 'title' => t('Comments'),
  17. 'filters' => array(
  18. 'status' => array(
  19. 'value' => COMMENT_PUBLISHED,
  20. 'table' => 'comment',
  21. 'field' => 'status',
  22. ),
  23. 'status_node' => array(
  24. 'value' => NODE_PUBLISHED,
  25. 'table' => 'node',
  26. 'field' => 'status',
  27. 'relationship' => 'nid',
  28. ),
  29. ),
  30. 'path_field' => array(
  31. 'id' => 'cid',
  32. 'table' => 'comment',
  33. 'field' => 'cid',
  34. 'exclude' => TRUE,
  35. 'link_to_comment' => FALSE,
  36. 'alter' => array(
  37. 'alter_text' => 1,
  38. 'text' => 'comment/[cid]#comment-[cid]',
  39. ),
  40. ),
  41. );
  42. }