function drush_devel_reinstall

Same name in other branches
  1. 6.x-1.x devel.drush.inc \drush_devel_reinstall()
  2. 8.x-1.x drush/devel.drush8.inc \drush_devel_reinstall()

A command callback for reinstalling one or more projects.

This is faster than 3 separate bootstraps.

File

./devel.drush.inc, line 71

Code

function drush_devel_reinstall() {
    $projects = func_get_args();
    $args = array_merge(array(
        'pm-disable',
    ), $projects);
    call_user_func_array('drush_invoke', $args);
    $args = array_merge(array(
        'pm-uninstall',
    ), $projects);
    call_user_func_array('drush_invoke', $args);
    $args = array_merge(array(
        'pm-enable',
    ), $projects);
    call_user_func_array('drush_invoke', $args);
}