1 views.module | views_new_view() |
Create an empty view to work with.
Return value
view: A fully formed, empty $view object. This object must be populated before it can be successfully saved.
File
- core/
modules/ views/ views.module, line 1276 - Primarily Backdrop hooks and global API functions to manipulate views.
Code
function views_new_view() {
$view = new view();
$view->add_display('default');
return $view;
}