Same name and namespace in other branches
  1. 6.x-3.x includes/view.inc \view::copy()

Make a copy of this view with IDs, handlers sanitized

I'd call this clone() but it's reserved.

File

includes/view.inc, line 2004
views_objects Objects that represent a View or part of a view

Class

view

Code

public function copy() {
  $code = $this
    ->export();
  eval($code);
  return $view;
}