function ctools_update_6003

Take over for the panels_views module if it was on.

File

./ctools.install, line 208

Code

function ctools_update_6003() {
    $result = db_query('SELECT status FROM {system} WHERE name = :name', array(
        ':name' => 'panels_views',
    ))->fetchField();
    if ($result) {
        db_delete('system')->condition('name', 'panels_views')
            ->execute();
        module_enable(array(
            'views_content',
        ), TRUE);
    }
}