function drush_views_disable

Same name in other branches
  1. 6.x-3.x drush/views.drush.inc \drush_views_disable()

Disables views.

File

drush/views.drush.inc, line 475

Code

function drush_views_disable() {
    $viewnames = _convert_csv_to_array(func_get_args());
    // Return early if no view names were specified.
    if (empty($viewnames)) {
        return drush_set_error(dt('Please specify a space delimited list of view names to disable'));
    }
    _views_drush_changestatus($viewnames, TRUE);
}