Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
304
Merge Requests
304
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
77038453
Commit
77038453
authored
Aug 27, 2012
by
dawehner
Committed by
tim.plunkett
Oct 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use the CTools export cruds anymore but directly use the entity system.
parent
ea3e288d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
views.module
views.module
+2
-10
No files found.
views.module
View file @
77038453
...
...
@@ -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 fresh one.
*/
function
views_get_view
(
$name
,
$reset
=
FALSE
)
{
if
(
$reset
)
{
$cache
=
&
drupal_static
(
'ctools_export_load_object'
);
if
(
isset
(
$cache
[
'views_view'
][
$name
]))
{
unset
(
$cache
[
'views_view'
][
$name
]);
}
}
function
views_get_view
(
$name
)
{
// @todo replace with http://drupal.org/node/1741154.
ctools_include
(
'export'
);
$view
=
ctools_export_crud_load
(
'views_view'
,
$name
);
$view
=
entity_load
(
'view'
,
$name
);
if
(
$view
)
{
$view
->
update
();
return
$view
->
clone_view
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment