function _views_get_default_view in Views (for Drupal 7) 5
1 call to _views_get_default_view()
File
- ./
views_ui.module, line 560
Code
function _views_get_default_view($template = '') {
if ($template) {
$default_views = _views_get_default_views();
if (isset($default_views[$template])) {
$view = $default_views[$template];
}
}
if (!$view) {
$view = new stdClass();
$view->use_pager = true;
$view->nodes_per_page = variable_get('default_nodes_main', 10);
$view->page_header_format = variable_get('filter_default_format', 1);
$view->page_footer_format = variable_get('filter_default_format', 1);
$view->page_header_format = variable_get('filter_default_format', 1);
$view->block_header_format = variable_get('filter_default_format', 1);
$view->block_footer_format = variable_get('filter_default_format', 1);
$view->block_header_format = variable_get('filter_default_format', 1);
$view->vid = 0;
}
return _views_check_arrays($view);
}