summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.15/sites/all/modules/views/drush/views.drush.inc
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.15/sites/all/modules/views/drush/views.drush.inc')
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/drush/views.drush.inc15
1 files changed, 8 insertions, 7 deletions
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/drush/views.drush.inc b/kolab.org/www/drupal-7.15/sites/all/modules/views/drush/views.drush.inc
index 4116d30..dd8af1b 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/drush/views.drush.inc
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/drush/views.drush.inc
@@ -1,10 +1,11 @@
<?php
+
/**
* @file
* Drush integration of views.
*
- * * drush cache-clear views - Clears the views specific caches.
- * * views-revert - Drush command to revert views overridden in the system.
+ * drush cache-clear views - Clears the views specific caches.
+ * views-revert - Drush command to revert views overridden in the system.
*/
/**
@@ -50,7 +51,7 @@ function views_drush_command() {
$items['views-dev'] = array(
'callback' => 'views_development_settings',
'drupal dependencies' => array('views'),
- 'description' => 'Setup the views settings to a more developer oriented value..',
+ 'description' => 'Set the Views settings to more developer-oriented values.',
'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
'aliases' => array('vd'),
);
@@ -236,6 +237,7 @@ function views_development_settings() {
variable_set('views_ui_show_listing_filters', TRUE);
variable_set('views_ui_show_master_display', TRUE);
variable_set('views_ui_show_advanced_column', TRUE);
+ variable_set('views_ui_always_live_preview', FALSE);
variable_set('views_ui_always_live_preview_button', TRUE);
variable_set('views_ui_show_preview_information', TRUE);
variable_set('views_ui_show_sql_query', TRUE);
@@ -455,8 +457,8 @@ function drush_views_disable() {
_views_drush_changestatus($viewnames, TRUE);
}
-/*
-* Helper function to enable / disable views
+/**
+ * Helper function to enable / disable views
* @param $viewnames: array of viewnames to process
* @param $status: TRUE to disable or FALSE to enable the view
*/
@@ -481,8 +483,7 @@ function _views_drush_changestatus($viewnames = array(), $status = NULL) {
variable_set('views_defaults', $views_status);
views_invalidate_cache();
drush_log(dt("Views cache was cleared"), 'ok');
- menu_rebuild();
- drush_log(dt("Menu cache was cleared"), 'ok');
+ drush_log(dt("Menu cache is set to be rebuilt on the next request."), 'ok');
}
}
}