123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315 |
- <?php
- /**
- * @file
- * Bulk export of views_default objects generated by Bulk export module.
- */
- /**
- * Implementation of hook_views_default_views()
- */
- function node_views_default_views() {
- $views = array();
- $view = new view;
- $view->name = 'archive';
- $view->description = 'Display a list of months that link to content for that month.';
- $view->tag = 'default';
- $view->base_table = 'node';
- $view->human_name = 'Archive';
- $view->core = 0;
- $view->api_version = '3.0';
- $view->disabled = TRUE; /* Edit this to true to make a default view disabled initially */
- /* Display: Master */
- $handler = $view->new_display('default', 'Master', 'default');
- $handler->display->display_options['title'] = 'Monthly archive';
- $handler->display->display_options['access']['type'] = 'none';
- $handler->display->display_options['cache']['type'] = 'none';
- $handler->display->display_options['query']['type'] = 'views_query';
- $handler->display->display_options['query']['options']['query_comment'] = FALSE;
- $handler->display->display_options['exposed_form']['type'] = 'basic';
- $handler->display->display_options['pager']['type'] = 'full';
- $handler->display->display_options['style_plugin'] = 'default';
- $handler->display->display_options['row_plugin'] = 'node';
- /* Sort criterion: Content: Post date */
- $handler->display->display_options['sorts']['created']['id'] = 'created';
- $handler->display->display_options['sorts']['created']['table'] = 'node';
- $handler->display->display_options['sorts']['created']['field'] = 'created';
- $handler->display->display_options['sorts']['created']['order'] = 'DESC';
- /* Contextual filter: Content: Created year + month */
- $handler->display->display_options['arguments']['created_year_month']['id'] = 'created_year_month';
- $handler->display->display_options['arguments']['created_year_month']['table'] = 'node';
- $handler->display->display_options['arguments']['created_year_month']['field'] = 'created_year_month';
- $handler->display->display_options['arguments']['created_year_month']['default_action'] = 'summary';
- $handler->display->display_options['arguments']['created_year_month']['exception']['title_enable'] = 1;
- $handler->display->display_options['arguments']['created_year_month']['title_enable'] = 1;
- $handler->display->display_options['arguments']['created_year_month']['title'] = '%1';
- $handler->display->display_options['arguments']['created_year_month']['default_argument_type'] = 'fixed';
- $handler->display->display_options['arguments']['created_year_month']['summary']['sort_order'] = 'desc';
- $handler->display->display_options['arguments']['created_year_month']['summary']['format'] = 'default_summary';
- $handler->display->display_options['arguments']['created_year_month']['summary_options']['override'] = TRUE;
- $handler->display->display_options['arguments']['created_year_month']['summary_options']['items_per_page'] = '30';
- $handler->display->display_options['arguments']['created_year_month']['specify_validation'] = 1;
- /* Filter criterion: Content: Published */
- $handler->display->display_options['filters']['status']['id'] = 'status';
- $handler->display->display_options['filters']['status']['table'] = 'node';
- $handler->display->display_options['filters']['status']['field'] = 'status';
- $handler->display->display_options['filters']['status']['value'] = 1;
- $handler->display->display_options['filters']['status']['group'] = 0;
- $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
- /* Display: Page */
- $handler = $view->new_display('page', 'Page', 'page');
- $handler->display->display_options['path'] = 'archive';
- /* Display: Block */
- $handler = $view->new_display('block', 'Block', 'block');
- $handler->display->display_options['defaults']['arguments'] = FALSE;
- /* Contextual filter: Content: Created year + month */
- $handler->display->display_options['arguments']['created_year_month']['id'] = 'created_year_month';
- $handler->display->display_options['arguments']['created_year_month']['table'] = 'node';
- $handler->display->display_options['arguments']['created_year_month']['field'] = 'created_year_month';
- $handler->display->display_options['arguments']['created_year_month']['default_action'] = 'summary';
- $handler->display->display_options['arguments']['created_year_month']['exception']['title_enable'] = 1;
- $handler->display->display_options['arguments']['created_year_month']['title_enable'] = 1;
- $handler->display->display_options['arguments']['created_year_month']['title'] = '%1';
- $handler->display->display_options['arguments']['created_year_month']['default_argument_type'] = 'fixed';
- $handler->display->display_options['arguments']['created_year_month']['summary']['format'] = 'default_summary';
- $handler->display->display_options['arguments']['created_year_month']['summary_options']['items_per_page'] = '30';
- $handler->display->display_options['arguments']['created_year_month']['specify_validation'] = 1;
- $translatables['archive'] = array(
- t('Master'),
- t('Monthly archive'),
- t('more'),
- t('Apply'),
- t('Reset'),
- t('Sort by'),
- t('Asc'),
- t('Desc'),
- t('Items per page'),
- t('- All -'),
- t('Offset'),
- t('All'),
- t('%1'),
- t('Page'),
- t('Block'),
- );
- $views['archive'] = $view;
- $view = new view;
- $view->name = 'frontpage';
- $view->description = 'Emulates the default Drupal front page; you may set the default home page path to this view to make it your front page.';
- $view->tag = 'default';
- $view->base_table = 'node';
- $view->human_name = 'Front page';
- $view->core = 0;
- $view->api_version = '3.0';
- $view->disabled = TRUE; /* Edit this to true to make a default view disabled initially */
- /* Display: Master */
- $handler = $view->new_display('default', 'Master', 'default');
- $handler->display->display_options['access']['type'] = 'none';
- $handler->display->display_options['cache']['type'] = 'none';
- $handler->display->display_options['query']['type'] = 'views_query';
- $handler->display->display_options['query']['options']['query_comment'] = FALSE;
- $handler->display->display_options['exposed_form']['type'] = 'basic';
- $handler->display->display_options['pager']['type'] = 'full';
- $handler->display->display_options['style_plugin'] = 'default';
- $handler->display->display_options['row_plugin'] = 'node';
- $handler->display->display_options['row_options']['links'] = 1;
- /* Sort criterion: Content: Sticky */
- $handler->display->display_options['sorts']['sticky']['id'] = 'sticky';
- $handler->display->display_options['sorts']['sticky']['table'] = 'node';
- $handler->display->display_options['sorts']['sticky']['field'] = 'sticky';
- $handler->display->display_options['sorts']['sticky']['order'] = 'DESC';
- /* Sort criterion: Content: Post date */
- $handler->display->display_options['sorts']['created']['id'] = 'created';
- $handler->display->display_options['sorts']['created']['table'] = 'node';
- $handler->display->display_options['sorts']['created']['field'] = 'created';
- $handler->display->display_options['sorts']['created']['order'] = 'DESC';
- /* Filter criterion: Content: Promoted to front page */
- $handler->display->display_options['filters']['promote']['id'] = 'promote';
- $handler->display->display_options['filters']['promote']['table'] = 'node';
- $handler->display->display_options['filters']['promote']['field'] = 'promote';
- $handler->display->display_options['filters']['promote']['value'] = '1';
- $handler->display->display_options['filters']['promote']['group'] = 0;
- $handler->display->display_options['filters']['promote']['expose']['operator'] = FALSE;
- /* Filter criterion: Content: Published */
- $handler->display->display_options['filters']['status']['id'] = 'status';
- $handler->display->display_options['filters']['status']['table'] = 'node';
- $handler->display->display_options['filters']['status']['field'] = 'status';
- $handler->display->display_options['filters']['status']['value'] = '1';
- $handler->display->display_options['filters']['status']['group'] = 0;
- $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
- /* Display: Page */
- $handler = $view->new_display('page', 'Page', 'page');
- $handler->display->display_options['path'] = 'frontpage';
- /* Display: Feed */
- $handler = $view->new_display('feed', 'Feed', 'feed');
- $handler->display->display_options['defaults']['title'] = FALSE;
- $handler->display->display_options['title'] = 'Front page feed';
- $handler->display->display_options['pager']['type'] = 'some';
- $handler->display->display_options['style_plugin'] = 'rss';
- $handler->display->display_options['row_plugin'] = 'node_rss';
- $handler->display->display_options['path'] = 'rss.xml';
- $handler->display->display_options['displays'] = array(
- 'default' => 'default',
- 'page' => 'page',
- );
- $handler->display->display_options['sitename_title'] = '1';
- $translatables['frontpage'] = array(
- t('Master'),
- t('more'),
- t('Apply'),
- t('Reset'),
- t('Sort by'),
- t('Asc'),
- t('Desc'),
- t('Items per page'),
- t('- All -'),
- t('Offset'),
- t('Page'),
- t('Feed'),
- t('Front page feed'),
- );
- $views['frontpage'] = $view;
- $view = new view;
- $view->name = 'glossary';
- $view->description = 'A list of all content, by letter.';
- $view->tag = 'default';
- $view->base_table = 'node';
- $view->human_name = 'Glossary';
- $view->core = 0;
- $view->api_version = '3.0';
- $view->disabled = TRUE; /* Edit this to true to make a default view disabled initially */
- /* Display: Master */
- $handler = $view->new_display('default', 'Master', 'default');
- $handler->display->display_options['use_ajax'] = TRUE;
- $handler->display->display_options['access']['type'] = 'none';
- $handler->display->display_options['cache']['type'] = 'none';
- $handler->display->display_options['query']['type'] = 'views_query';
- $handler->display->display_options['query']['options']['query_comment'] = FALSE;
- $handler->display->display_options['exposed_form']['type'] = 'basic';
- $handler->display->display_options['pager']['type'] = 'full';
- $handler->display->display_options['pager']['options']['items_per_page'] = 36;
- $handler->display->display_options['style_plugin'] = 'table';
- $handler->display->display_options['style_options']['columns'] = array(
- 'title' => 'title',
- 'name' => 'name',
- 'changed' => 'changed',
- );
- $handler->display->display_options['style_options']['default'] = 'title';
- $handler->display->display_options['style_options']['info'] = array(
- 'title' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- 'name' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- 'changed' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- );
- $handler->display->display_options['style_options']['override'] = 1;
- $handler->display->display_options['style_options']['sticky'] = 0;
- /* Field: Content: Title */
- $handler->display->display_options['fields']['title']['id'] = 'title';
- $handler->display->display_options['fields']['title']['table'] = 'node';
- $handler->display->display_options['fields']['title']['field'] = 'title';
- $handler->display->display_options['fields']['title']['link_to_node'] = 1;
- /* Field: User: Name */
- $handler->display->display_options['fields']['name']['id'] = 'name';
- $handler->display->display_options['fields']['name']['table'] = 'users';
- $handler->display->display_options['fields']['name']['field'] = 'name';
- $handler->display->display_options['fields']['name']['label'] = 'Author';
- $handler->display->display_options['fields']['name']['link_to_user'] = 1;
- /* Field: Content: Updated date */
- $handler->display->display_options['fields']['changed']['id'] = 'changed';
- $handler->display->display_options['fields']['changed']['table'] = 'node';
- $handler->display->display_options['fields']['changed']['field'] = 'changed';
- $handler->display->display_options['fields']['changed']['label'] = 'Last update';
- $handler->display->display_options['fields']['changed']['date_format'] = 'large';
- /* Contextual filter: Content: Title */
- $handler->display->display_options['arguments']['title']['id'] = 'title';
- $handler->display->display_options['arguments']['title']['table'] = 'node';
- $handler->display->display_options['arguments']['title']['field'] = 'title';
- $handler->display->display_options['arguments']['title']['default_action'] = 'default';
- $handler->display->display_options['arguments']['title']['exception']['title_enable'] = 1;
- $handler->display->display_options['arguments']['title']['default_argument_type'] = 'fixed';
- $handler->display->display_options['arguments']['title']['default_argument_options']['argument'] = 'a';
- $handler->display->display_options['arguments']['title']['summary']['format'] = 'default_summary';
- $handler->display->display_options['arguments']['title']['specify_validation'] = 1;
- $handler->display->display_options['arguments']['title']['glossary'] = 1;
- $handler->display->display_options['arguments']['title']['limit'] = '1';
- $handler->display->display_options['arguments']['title']['case'] = 'upper';
- $handler->display->display_options['arguments']['title']['path_case'] = 'lower';
- $handler->display->display_options['arguments']['title']['transform_dash'] = 0;
- /* Display: Page */
- $handler = $view->new_display('page', 'Page', 'page');
- $handler->display->display_options['path'] = 'glossary';
- $handler->display->display_options['menu']['type'] = 'normal';
- $handler->display->display_options['menu']['title'] = 'Glossary';
- $handler->display->display_options['menu']['weight'] = '0';
- /* Display: Attachment */
- $handler = $view->new_display('attachment', 'Attachment', 'attachment');
- $handler->display->display_options['pager']['type'] = 'none';
- $handler->display->display_options['pager']['options']['offset'] = '0';
- $handler->display->display_options['defaults']['arguments'] = FALSE;
- /* Contextual filter: Content: Title */
- $handler->display->display_options['arguments']['title']['id'] = 'title';
- $handler->display->display_options['arguments']['title']['table'] = 'node';
- $handler->display->display_options['arguments']['title']['field'] = 'title';
- $handler->display->display_options['arguments']['title']['default_action'] = 'summary';
- $handler->display->display_options['arguments']['title']['exception']['title_enable'] = 1;
- $handler->display->display_options['arguments']['title']['default_argument_type'] = 'fixed';
- $handler->display->display_options['arguments']['title']['default_argument_options']['argument'] = 'a';
- $handler->display->display_options['arguments']['title']['summary']['format'] = 'unformatted_summary';
- $handler->display->display_options['arguments']['title']['summary_options']['items_per_page'] = '25';
- $handler->display->display_options['arguments']['title']['summary_options']['inline'] = 1;
- $handler->display->display_options['arguments']['title']['summary_options']['separator'] = ' | ';
- $handler->display->display_options['arguments']['title']['specify_validation'] = 1;
- $handler->display->display_options['arguments']['title']['glossary'] = 1;
- $handler->display->display_options['arguments']['title']['limit'] = '1';
- $handler->display->display_options['arguments']['title']['case'] = 'upper';
- $handler->display->display_options['arguments']['title']['path_case'] = 'lower';
- $handler->display->display_options['arguments']['title']['transform_dash'] = 0;
- $handler->display->display_options['displays'] = array(
- 'default' => 'default',
- 'page' => 'page',
- );
- $handler->display->display_options['inherit_arguments'] = 0;
- $translatables['glossary'] = array(
- t('Master'),
- t('more'),
- t('Apply'),
- t('Reset'),
- t('Sort by'),
- t('Asc'),
- t('Desc'),
- t('Items per page'),
- t('- All -'),
- t('Offset'),
- t('Title'),
- t('Author'),
- t('Last update'),
- t('All'),
- t('Page'),
- t('Attachment'),
- );
- $views['glossary'] = $view;
- return $views;
- }
|