You are here

function drush_views_enable in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 7.3 drush/views.drush.inc \drush_views_enable()

Enables views

File

drush/views.drush.inc, line 410
Drush integration of views.

Code

function drush_views_enable() {
  $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 enable'));
  }
  _views_drush_changestatus($viewnames, FALSE);
}