function drush_views_enable

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

Enables views.

File

drush/views.drush.inc, line 463

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);
}