search.views_default.inc

Bulk export of views_default objects generated by Bulk export module.

File

modules/search.views_default.inc

View source
<?php


/**
 * @file
 * Bulk export of views_default objects generated by Bulk export module.
 */

/**
 * Implements 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['use_more_always'] = FALSE;
    $handler->display->display_options['access']['type'] = 'perm';
    $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: Unfiltered text */
    $handler->display->display_options['empty']['area_text_custom']['id'] = 'area_text_custom';
    $handler->display->display_options['empty']['area_text_custom']['table'] = 'views';
    $handler->display->display_options['empty']['area_text_custom']['field'] = 'area_text_custom';
    $handler->display->display_options['empty']['area_text_custom']['content'] = 'No backlinks found.';
    
    /* 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'] = '';
    
    /* 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'] = TRUE;
    $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'] = TRUE;
    $handler->display->display_options['arguments']['nid']['validate']['type'] = 'node';
    
    /* Filter criterion: Content: Published status */
    $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'] = TRUE;
    $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'] = TRUE;
    $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;
}

Functions

Title Deprecated Summary
search_views_default_views Implements hook_views_default_views().