123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <?php
- /**
- * @file
- * Bulk export of views_default objects generated by Bulk export module.
- */
- /**
- * Implementation of hook_views_default_views()
- */
- function search_views_default_views() {
- $views = array();
- $view = new view;
- $view->name = 'backlinks';
- $view->description = 'Displays a list of nodes that link to the node, using the search backlinks table.';
- $view->tag = 'default';
- $view->base_table = 'node';
- $view->human_name = 'Backlinks';
- $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['pager']['options']['items_per_page'] = 30;
- $handler->display->display_options['style_plugin'] = 'list';
- $handler->display->display_options['style_options']['type'] = 'ol';
- $handler->display->display_options['row_plugin'] = 'fields';
- /* No results behavior: Global: Text area */
- $handler->display->display_options['empty']['text']['id'] = 'area';
- $handler->display->display_options['empty']['text']['table'] = 'views';
- $handler->display->display_options['empty']['text']['field'] = 'area';
- $handler->display->display_options['empty']['text']['empty'] = FALSE;
- $handler->display->display_options['empty']['text']['content'] = 'No backlinks found.';
- $handler->display->display_options['empty']['text']['format'] = '1';
- /* 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']['label'] = '';
- $handler->display->display_options['fields']['title']['link_to_node'] = 1;
- /* Contextual filter: Search: Links to */
- $handler->display->display_options['arguments']['nid']['id'] = 'nid';
- $handler->display->display_options['arguments']['nid']['table'] = 'search_node_links_to';
- $handler->display->display_options['arguments']['nid']['field'] = 'nid';
- $handler->display->display_options['arguments']['nid']['default_action'] = 'not found';
- $handler->display->display_options['arguments']['nid']['title_enable'] = 1;
- $handler->display->display_options['arguments']['nid']['title'] = 'Pages that link to %1';
- $handler->display->display_options['arguments']['nid']['default_argument_type'] = 'fixed';
- $handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
- $handler->display->display_options['arguments']['nid']['specify_validation'] = 1;
- $handler->display->display_options['arguments']['nid']['validate']['type'] = 'node';
- /* 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'] = 'node/%/backlinks';
- $handler->display->display_options['menu']['type'] = 'tab';
- $handler->display->display_options['menu']['title'] = 'What links here';
- $handler->display->display_options['menu']['weight'] = '0';
- /* Display: What links here */
- $handler = $view->new_display('block', 'What links here', 'block');
- $handler->display->display_options['defaults']['use_more'] = FALSE;
- $handler->display->display_options['use_more'] = TRUE;
- $handler->display->display_options['defaults']['style_plugin'] = FALSE;
- $handler->display->display_options['style_plugin'] = 'list';
- $handler->display->display_options['defaults']['style_options'] = FALSE;
- $handler->display->display_options['defaults']['row_plugin'] = FALSE;
- $handler->display->display_options['row_plugin'] = 'fields';
- $handler->display->display_options['defaults']['row_options'] = FALSE;
- $handler->display->display_options['defaults']['arguments'] = FALSE;
- /* Contextual filter: Search: Links to */
- $handler->display->display_options['arguments']['nid']['id'] = 'nid';
- $handler->display->display_options['arguments']['nid']['table'] = 'search_node_links_to';
- $handler->display->display_options['arguments']['nid']['field'] = 'nid';
- $handler->display->display_options['arguments']['nid']['default_action'] = 'default';
- $handler->display->display_options['arguments']['nid']['title_enable'] = 1;
- $handler->display->display_options['arguments']['nid']['title'] = 'What links here';
- $handler->display->display_options['arguments']['nid']['default_argument_type'] = 'node';
- $handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
- $handler->display->display_options['arguments']['nid']['specify_validation'] = 1;
- $handler->display->display_options['arguments']['nid']['validate']['type'] = 'node';
- $translatables['backlinks'] = 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('No backlinks found.'),
- t('All'),
- t('Pages that link to %1'),
- t('Page'),
- t('What links here'),
- );
- $views['backlinks'] = $view;
- return $views;
- }
|