function views_create_view in Views (for Drupal 7) 5
Same name and namespace in other branches
- 8.3 views.module \views_create_view()
Create a blank view.
File
- ./
views.module, line 1133
Code
function views_create_view($name, $description, $access = array()) {
$view = new stdClass();
_views_check_arrays($view);
$view->name = $name;
$view->description = $description;
$view->access = $access;
// ensure some things are numerically 0.
$view->nodes_per_page = 0;
$view->nodes_per_block = 0;
return $view;
}