Skip to content
Snippets Groups Projects
Commit 5c05eb20 authored by Earl Miles's avatar Earl Miles
Browse files

Automatically switch to views content panes if panels_views was previously enabled.

parent 77bc4639
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment