function views_update_7000
Rename some system variables.
File
-
./
views.install, line 582
Code
function views_update_7000() {
// Views now lets users turn off query details on live preview.
$query_on_top = variable_get('views_ui_query_on_top');
if (isset($query_on_top)) {
variable_set('views_ui_show_sql_query', TRUE);
if ($query_on_top) {
variable_set('views_ui_show_sql_query_where', 'above');
}
else {
variable_set('views_ui_show_sql_query_where', 'below');
}
variable_del('views_ui_query_on_top');
}
// Rename the views_hide_help_message variable from negative to positive.
$hide_help = variable_get('views_hide_help_message');
if (isset($hide_help)) {
variable_set('views_ui_show_advanced_help_warning', !$hide_help);
variable_del('views_hide_help_message');
}
// Rename the unused views_no_hover_links variable.
variable_del('views_no_hover_links');
}