node.inc 876 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * @file
  4. * Views wizard for node views.
  5. */
  6. $plugin = array(
  7. 'name' => 'node',
  8. 'base_table' => 'node',
  9. 'created_column' => 'created',
  10. 'available_sorts' => array(
  11. 'title:DESC' => t('Title'),
  12. ),
  13. 'form_wizard_class' => array(
  14. 'file' => 'views_ui_node_views_wizard.class.php',
  15. 'class' => 'ViewsUiNodeViewsWizard',
  16. ),
  17. 'title' => t('Content'),
  18. 'filters' => array(
  19. 'status' => array(
  20. 'value' => NODE_PUBLISHED,
  21. 'table' => 'node',
  22. 'field' => 'status',
  23. ),
  24. ),
  25. 'path_field' => array(
  26. 'id' => 'nid',
  27. 'table' => 'node',
  28. 'field' => 'nid',
  29. 'exclude' => TRUE,
  30. 'link_to_node' => FALSE,
  31. 'alter' => array(
  32. 'alter_text' => 1,
  33. 'text' => 'node/[nid]',
  34. ),
  35. ),
  36. );
  37. if (module_exists('statistics')) {
  38. $plugin['available_sorts']['node_counter-totalcount:DESC'] = t('Number of hits');
  39. }