function views_service_export in Services 6.2
Same name and namespace in other branches
- 6 services/views_service/views_service.inc \views_service_export()
- 7 services/views_service/views_service.inc \views_service_export()
Export a view.
Parameters
view_name: String. The views name.
Return value
Array. The view object.
1 string reference to 'views_service_export'
- views_service_service in services/
views_service/ views_service.module - Implementation of hook_service().
File
- services/
views_service/ views_service.inc, line 87 - Link general views functionalities to services module.
Code
function views_service_export($view_name) {
$view = views_get_view($view_name);
if (empty($view)) {
return services_error('View does not exist.', 404);
}
return $view
->export();
}