You are here

function views_service_export_view in Services 5

Export a view.

1 string reference to 'views_service_export_view'
views_service_service in services/views_service/views_service.module
Implementation of hook_service().

File

services/views_service/views_service.module, line 127
The module which exposes services related to views module

Code

function views_service_export_view($view_name) {
  $view = views_get_view($view_name);
  if (is_null($view)) {
    return services_error('View does not exist.');
  }
  return views_create_view_code($view_name);
}