Fix for A basic view for mrchrisadams

  1. $view = new view;
  2. $view->name = 'mrchrisadams';
  3. $view->description = '';
  4. $view->tag = '';
  5. $view->view_php = '';
  6. $view->base_table = 'node';
  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('fields', array(
  12.   'created' => array(
  13.     'label' => 'Post date',
  14.     'alter' => array(
  15.       'alter_text' => 0,
  16.       'text' => '',
  17.       'make_link' => 0,
  18.       'path' => '',
  19.       'link_class' => '',
  20.       'alt' => '',
  21.       'prefix' => '',
  22.       'suffix' => '',
  23.       'target' => '',
  24.       'help' => '',
  25.       'trim' => 0,
  26.       'max_length' => '',
  27.       'word_boundary' => 1,
  28.       'ellipsis' => 1,
  29.       'html' => 0,
  30.       'strip_tags' => 0,
  31.     ),
  32.     'empty' => '',
  33.     'hide_empty' => 0,
  34.     'empty_zero' => 0,
  35.     'date_format' => 'small',
  36.     'custom_date_format' => '',
  37.     'exclude' => 0,
  38.     'id' => 'created',
  39.     'table' => 'node',
  40.     'field' => 'created',
  41.     'relationship' => 'none',
  42.   ),
  43.   'title' => array(
  44.     'label' => 'Title',
  45.     'alter' => array(
  46.       'alter_text' => 0,
  47.       'text' => '',
  48.       'make_link' => 0,
  49.       'path' => '',
  50.       'link_class' => '',
  51.       'alt' => '',
  52.       'prefix' => '',
  53.       'suffix' => '',
  54.       'target' => '',
  55.       'help' => '',
  56.       'trim' => 0,
  57.       'max_length' => '',
  58.       'word_boundary' => 1,
  59.       'ellipsis' => 1,
  60.       'html' => 0,
  61.       'strip_tags' => 0,
  62.     ),
  63.     'empty' => '',
  64.     'hide_empty' => 0,
  65.     'empty_zero' => 0,
  66.     'link_to_node' => 1,
  67.     'exclude' => 0,
  68.     'id' => 'title',
  69.     'table' => 'node',
  70.     'field' => 'title',
  71.     'relationship' => 'none',
  72.   ),
  73.   'teaser' => array(
  74.     'label' => 'Teaser',
  75.     'alter' => array(
  76.       'alter_text' => 0,
  77.       'text' => '',
  78.       'make_link' => 0,
  79.       'path' => '',
  80.       'link_class' => '',
  81.       'alt' => '',
  82.       'prefix' => '',
  83.       'suffix' => '',
  84.       'target' => '',
  85.       'help' => '',
  86.       'trim' => 0,
  87.       'max_length' => '',
  88.       'word_boundary' => 1,
  89.       'ellipsis' => 1,
  90.       'html' => 0,
  91.       'strip_tags' => 0,
  92.     ),
  93.     'empty' => '',
  94.     'hide_empty' => 0,
  95.     'empty_zero' => 0,
  96.     'exclude' => 0,
  97.     'id' => 'teaser',
  98.     'table' => 'node_revisions',
  99.     'field' => 'teaser',
  100.     'relationship' => 'none',
  101.   ),
  102. ));
  103. $handler->override_option('access', array(
  104.   'type' => 'none',
  105. ));
  106. $handler->override_option('cache', array(
  107.   'type' => 'none',
  108. ));
  109. $handler = $view->new_display('page', 'Page', 'page_1');
  110. $handler->override_option('path', 'mrchrisadams');
  111. $handler->override_option('menu', array(
  112.   'type' => 'none',
  113.   'title' => '',
  114.   'description' => '',
  115.   'weight' => 0,
  116.   'name' => 'navigation',
  117. ));
  118. $handler->override_option('tab_options', array(
  119.   'type' => 'none',
  120.   'title' => '',
  121.   'description' => '',
  122.   'weight' => 0,
  123.   'name' => 'navigation',
  124. ));
  125. $handler = $view->new_display('block', 'Block', 'block_1');
  126. $handler->override_option('fields', array(
  127.   'created' => array(
  128.     'label' => 'Post date',
  129.     'alter' => array(
  130.       'alter_text' => 0,
  131.       'text' => '',
  132.       'make_link' => 0,
  133.       'path' => '',
  134.       'link_class' => '',
  135.       'alt' => '',
  136.       'prefix' => '',
  137.       'suffix' => '',
  138.       'target' => '',
  139.       'help' => '',
  140.       'trim' => 0,
  141.       'max_length' => '',
  142.       'word_boundary' => 1,
  143.       'ellipsis' => 1,
  144.       'html' => 0,
  145.       'strip_tags' => 0,
  146.     ),
  147.     'empty' => '',
  148.     'hide_empty' => 0,
  149.     'empty_zero' => 0,
  150.     'date_format' => 'small',
  151.     'custom_date_format' => '',
  152.     'exclude' => 0,
  153.     'id' => 'created',
  154.     'table' => 'node',
  155.     'field' => 'created',
  156.     'relationship' => 'none',
  157.   ),
  158.   'title' => array(
  159.     'label' => 'Title',
  160.     'alter' => array(
  161.       'alter_text' => 0,
  162.       'text' => '',
  163.       'make_link' => 0,
  164.       'path' => '',
  165.       'link_class' => '',
  166.       'alt' => '',
  167.       'prefix' => '',
  168.       'suffix' => '',
  169.       'target' => '',
  170.       'help' => '',
  171.       'trim' => 0,
  172.       'max_length' => '',
  173.       'word_boundary' => 1,
  174.       'ellipsis' => 1,
  175.       'html' => 0,
  176.       'strip_tags' => 0,
  177.     ),
  178.     'empty' => '',
  179.     'hide_empty' => 0,
  180.     'empty_zero' => 0,
  181.     'link_to_node' => 1,
  182.     'exclude' => 0,
  183.     'id' => 'title',
  184.     'table' => 'node',
  185.     'field' => 'title',
  186.     'relationship' => 'none',
  187.   ),
  188. ));
  189. $handler->override_option('block_description', '');
  190. $handler->override_option('block_caching', -1);

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.