Disable view

Public

Get raw version
php
  1. $view = views_get_view('view_name');
  2. if (!empty($view)) {
  3. ctools_include('export');
  4. ctools_export_crud_set_status('views_view', $view, TRUE);
  5. }