Commit 77038453 authored by dawehner's avatar dawehner Committed by tim.plunkett

Don't use the CTools export cruds anymore but directly use the entity system.

parent ea3e288d
...@@ -1742,17 +1742,9 @@ function views_view_is_disabled($view) { ...@@ -1742,17 +1742,9 @@ function views_view_is_disabled($view) {
* A reference to the $view object. Use $reset if you're sure you want * A reference to the $view object. Use $reset if you're sure you want
* a fresh one. * a fresh one.
*/ */
function views_get_view($name, $reset = FALSE) { function views_get_view($name) {
if ($reset) {
$cache = &drupal_static('ctools_export_load_object');
if (isset($cache['views_view'][$name])) {
unset($cache['views_view'][$name]);
}
}
// @todo replace with http://drupal.org/node/1741154. $view = entity_load('view', $name);
ctools_include('export');
$view = ctools_export_crud_load('views_view', $name);
if ($view) { if ($view) {
$view->update(); $view->update();
return $view->clone_view(); return $view->clone_view();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment