Fix for View to pull in comments in a wall-to-wall way...

  1. $view = new view;
  2. $view->name = 'w2w';
  3. $view->description = '';
  4. $view->tag = '';
  5. $view->view_php = '';
  6. $view->base_table = 'comments';
  7. $view->is_cacheable = FALSE;
  8. $view->api_version = 2;
  9. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  10. $handler = $view->new_display('default', 'Defaults', 'default');
  11. $handler->override_option('relationships', array(
  12.   'nid' => array(
  13.     'label' => 'Node',
  14.     'required' => 0,
  15.     'id' => 'nid',
  16.     'table' => 'comments',
  17.     'field' => 'nid',
  18.     'relationship' => 'none',
  19.   ),
  20. ));
  21. $handler->override_option('fields', array(
  22.   'name' => array(
  23.     'label' => 'Author',
  24.     'alter' => array(
  25.       'alter_text' => 0,
  26.       'text' => '',
  27.       'make_link' => 0,
  28.       'path' => '',
  29.       'alt' => '',
  30.       'prefix' => '',
  31.       'suffix' => '',
  32.       'help' => '',
  33.       'trim' => 0,
  34.       'max_length' => '',
  35.       'word_boundary' => 1,
  36.       'ellipsis' => 1,
  37.       'html' => 0,
  38.     ),
  39.     'link_to_user' => 1,
  40.     'exclude' => 0,
  41.     'id' => 'name',
  42.     'table' => 'comments',
  43.     'field' => 'name',
  44.     'relationship' => 'none',
  45.   ),
  46.   'comment' => array(
  47.     'label' => 'Body',
  48.     'alter' => array(
  49.       'alter_text' => 0,
  50.       'text' => '',
  51.       'make_link' => 0,
  52.       'path' => '',
  53.       'alt' => '',
  54.       'prefix' => '',
  55.       'suffix' => '',
  56.       'help' => '',
  57.       'trim' => 0,
  58.       'max_length' => '',
  59.       'word_boundary' => 1,
  60.       'ellipsis' => 1,
  61.       'html' => 0,
  62.     ),
  63.     'exclude' => 0,
  64.     'id' => 'comment',
  65.     'table' => 'comments',
  66.     'field' => 'comment',
  67.     'relationship' => 'none',
  68.   ),
  69. ));
  70. $handler->override_option('arguments', array(
  71.   'name' => array(
  72.     'default_action' => 'ignore',
  73.     'style_plugin' => 'default_summary',
  74.     'style_options' => array(),
  75.     'wildcard' => 'all',
  76.     'wildcard_substitution' => 'All',
  77.     'title' => '',
  78.     'default_argument_type' => 'fixed',
  79.     'default_argument' => '',
  80.     'validate_type' => 'none',
  81.     'validate_fail' => 'not found',
  82.     'glossary' => 0,
  83.     'limit' => '0',
  84.     'case' => 'none',
  85.     'path_case' => 'none',
  86.     'transform_dash' => 0,
  87.     'id' => 'name',
  88.     'table' => 'users',
  89.     'field' => 'name',
  90.     'relationship' => 'nid',
  91.     'default_options_div_prefix' => '',
  92.     'default_argument_user' => 0,
  93.     'default_argument_fixed' => '',
  94.     'default_argument_php' => '',
  95.     'validate_argument_node_type' => array(
  96.       'poll' => 0,
  97.       'chatterbox' => 0,
  98.       'classified' => 0,
  99.       'discussion' => 0,
  100.       'event' => 0,
  101.       'file' => 0,
  102.       'list' => 0,
  103.       'page' => 0,
  104.       'photo' => 0,
  105.       'question' => 0,
  106.       'recipe' => 0,
  107.       'review' => 0,
  108.       'smackdown' => 0,
  109.       'story' => 0,
  110.     ),
  111.     'validate_argument_node_access' => 0,
  112.     'validate_argument_nid_type' => 'nid',
  113.     'validate_argument_vocabulary' => array(
  114.       '1' => 0,
  115.       '2' => 0,
  116.     ),
  117.     'validate_argument_type' => 'tid',
  118.     'user_argument_type' => '',
  119.     'restrict_user_roles' => 0,
  120.     'user_roles' => array(),
  121.     'validate_argument_php' => '',
  122.   ),
  123.   'name_1' => array(
  124.     'default_action' => 'default',
  125.     'style_plugin' => 'default_summary',
  126.     'style_options' => array(),
  127.     'wildcard' => 'all',
  128.     'wildcard_substitution' => 'All',
  129.     'title' => '',
  130.     'default_argument_type' => 'current_user',
  131.     'default_argument' => '',
  132.     'validate_type' => 'none',
  133.     'validate_fail' => 'not found',
  134.     'glossary' => 0,
  135.     'limit' => '0',
  136.     'case' => 'none',
  137.     'path_case' => 'none',
  138.     'transform_dash' => 0,
  139.     'id' => 'name_1',
  140.     'table' => 'comments',
  141.     'field' => 'name',
  142.     'relationship' => 'none',
  143.     'default_options_div_prefix' => '',
  144.     'default_argument_user' => 0,
  145.     'default_argument_fixed' => '',
  146.     'default_argument_php' => '',
  147.     'validate_argument_node_type' => array(
  148.       'poll' => 0,
  149.       'chatterbox' => 0,
  150.       'classified' => 0,
  151.       'discussion' => 0,
  152.       'event' => 0,
  153.       'file' => 0,
  154.       'list' => 0,
  155.       'page' => 0,
  156.       'photo' => 0,
  157.       'question' => 0,
  158.       'recipe' => 0,
  159.       'review' => 0,
  160.       'smackdown' => 0,
  161.       'story' => 0,
  162.     ),
  163.     'validate_argument_node_access' => 0,
  164.     'validate_argument_nid_type' => 'nid',
  165.     'validate_argument_vocabulary' => array(
  166.       '1' => 0,
  167.       '2' => 0,
  168.     ),
  169.     'validate_argument_type' => 'tid',
  170.     'user_argument_type' => 'either',
  171.     'restrict_user_roles' => 0,
  172.     'user_roles' => array(),
  173.     'validate_argument_php' => '',
  174.   ),
  175. ));
  176. $handler->override_option('access', array(
  177.   'type' => 'none',
  178. ));

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.