function _spaces_core_views_tags in Spaces 5
Same name and namespace in other branches
- 5.2 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 981
Code
function _spaces_core_views_tags() {
$view = new stdClass();
$view->name = 'spaces_tags';
$view->description = '';
$view->access = array();
$view->view_args_php = 'return _spaces_views_arg_og_handler($args);';
$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',
),
),
);
$view->argument = array(
array(
'type' => 'gid',
'argdefault' => '2',
),
);
$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;
}