function drush_views_enable

3.x views.drush.inc drush_views_enable()

Enables views

File

drush/views.drush.inc, line 439
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);
}