function taxonomy_views_default_views in Views (for Drupal 7) 5
Same name and namespace in other branches
- 6.3 modules/taxonomy.views_default.inc \taxonomy_views_default_views()
- 6.2 modules/taxonomy.views_default.inc \taxonomy_views_default_views()
- 7.3 modules/taxonomy.views_default.inc \taxonomy_views_default_views()
File
- modules/
views_taxonomy.inc, line 170
Code
function taxonomy_views_default_views() {
$view = new stdClass();
$view->name = 'taxonomy_term';
$view->disabled = true;
$view->description = t('The taxonomy view with a depth of 0.');
$view->access = array();
$view->page = TRUE;
$view->page_title = t('Taxonomy');
$view->page_header = '';
$view->page_header_format = '1';
$view->page_type = 'teaser';
$view->url = 'taxonomy/term';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->sort = array(
array(
'tablename' => 'node',
'field' => 'sticky',
'sortorder' => 'DESC',
'options' => '',
),
array(
'tablename' => 'node',
'field' => 'created',
'sortorder' => 'DESC',
'options' => '',
),
);
$view->argument = array(
array(
'type' => 'taxid',
'argdefault' => '1',
'title' => '%1',
'options' => '0',
),
array(
'type' => 'node_feed',
'argdefault' => '2',
'title' => '',
'options' => '',
),
);
$view->field = array();
$view->filter = array(
array(
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
);
$view->requires = array(
node,
);
$views[$view->name] = $view;
return $views;
}