You are here

function views_deploy in Deploy - Content Staging 5

Same name and namespace in other branches
  1. 6 modules/views_deploy/views_deploy.module \views_deploy()

deploy view deployment 'hook'

File

views_deploy/views_deploy.module, line 106

Code

function views_deploy($url, $api_key, $view_name) {
  $view = views_get_view($view_name);
  if (is_null($view)) {
    drupal_set_message(t("View {$view_name} does not exist."));
  }
  $export = views_create_view_code($view_name);
  return xmlrpc($url, 'views.importView', $api_key, $export);
}