Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ctools
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
ctools
Commits
5c05eb20
Commit
5c05eb20
authored
15 years ago
by
Earl Miles
Browse files
Options
Downloads
Patches
Plain Diff
Automatically switch to views content panes if panels_views was previously enabled.
parent
77bc4639
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ctools.install
+15
-0
15 additions, 0 deletions
ctools.install
with
15 additions
and
0 deletions
ctools.install
+
15
−
0
View file @
5c05eb20
...
...
@@ -145,3 +145,18 @@ function ctools_update_6002() {
db_create_table
(
$ret
,
'ctools_css_cache'
,
$schema
[
'ctools_css_cache'
]);
return
$ret
;
}
/**
* Take over for the panels_views module if it was on.
*/
function
ctools_update_6003
()
{
$ret
=
array
();
$result
=
db_result
(
db_query
(
"SELECT status FROM
{
system
}
WHERE name = 'panels_views'"
));
if
(
$result
)
{
$ret
[]
=
update_sql
(
"DELETE from
{
system
}
WHERE name = 'panels_views'"
);
drupal_install_modules
(
array
(
'views_content'
));
}
return
$ret
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment