function views_new_view

cis7 views.module views_new_view()
cle7 views.module views_new_view()
elmsmedia7 views.module views_new_view()
icor7 views.module views_new_view()
meedjum_blog7 views.module views_new_view()
mooc7 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.

1 call to views_new_view()
ViewsUiBaseViewsWizard::instantiate_view in sites/all/modules/ulmus/views/plugins/views_wizard/views_ui_base_views_wizard.class.php
1 string reference to 'views_new_view'
views_schema_6000 in sites/all/modules/ulmus/views/views.install
Views 2's initial schema. Called directly by views_update_6000() for updates from Drupal 5.

File

sites/all/modules/ulmus/views/views.module, line 1366
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_new_view() {
  views_include('view');
  $view = new view();
  $view->vid = 'new';
  $view->add_display('default');

  return $view;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.