You are here

function _spaces_core_views_tags in Spaces 5.2

Same name and namespace in other branches
  1. 5 spaces_core/spaces_core.module \_spaces_core_views_tags()
1 string reference to '_spaces_core_views_tags'
spaces_core_views_default_views in spaces_core/spaces_core.module
Implementation of hook_default_views().

File

spaces_core/spaces_core.module, line 980

Code

function _spaces_core_views_tags() {
  $view = new stdClass();
  $view->name = 'spaces_tags';
  $view->description = '';
  $view->access = array();
  $view->page = FALSE;
  $view->block = TRUE;
  $view->block_title = t('Tags');
  $view->block_empty = '<p>' . t('No tags found.') . '</p>';
  $view->block_empty_format = '1';
  $view->block_type = 'tagadelic';
  $view->nodes_per_block = '20';
  $view->sort = array();
  $view->filter = array(
    array(
      'tablename' => 'node',
      'field' => 'status',
      'operator' => '=',
      'options' => '',
      'value' => '1',
    ),
    array(
      'tablename' => 'term_data',
      'field' => 'vid',
      'operator' => 'AND',
      'options' => '',
      'value' => array(
        0 => '11',
      ),
    ),
    array(
      'tablename' => 'spaces',
      'field' => 'type',
      'operator' => 'active',
      'options' => '',
      'value' => 'all',
    ),
  );
  $view->argument = array();
  $view->field = array(
    array(
      'tablename' => 'term_node',
      'field' => 'name',
      'label' => '',
      'options' => 'link',
    ),
  );
  $view->exposed_filter = array();
  $view->requires = array(
    term_node,
    node,
    term_data,
  );
  return $view;
}