function drush_system_modules_form_submit

8.0.x environment_6.inc drush_system_modules_form_submit()
6.x environment_6.inc drush_system_modules_form_submit()
7.x environment_6.inc drush_system_modules_form_submit()
3.x environment_7.inc drush_system_modules_form_submit($active_modules)
3.x environment_6.inc drush_system_modules_form_submit($active_modules)
3.x environment_5.inc drush_system_modules_form_submit($active_modules)
4.x environment_6.inc drush_system_modules_form_submit($active_modules)
4.x environment_5.inc drush_system_modules_form_submit($active_modules)
4.x environment.inc drush_system_modules_form_submit($active_modules)
5.x environment_6.inc drush_system_modules_form_submit()

Submit the system modules form.

The modules should already be fully enabled/disabled before calling this function. Calling this function just makes sure any activities triggered by the form submit (such as admin_role) are completed.

2 calls to drush_system_modules_form_submit()
drush_pm_disable in commands/pm/pm.drush.inc
Command callback. Disable one or more projects.
drush_pm_enable in commands/pm/pm.drush.inc
Command callback. Enable one or more projects.

File

commands/core/drupal/environment_7.inc, line 117
Specific functions for a drupal 5 environment. drush_include_engine() magically includes either this file or environment_X.inc depending on which version of drupal drush is called from.

Code

function drush_system_modules_form_submit($active_modules) {
  module_load_include('inc', 'system', 'system.admin');
  $form_state = array('values' => array('status' => $active_modules));
  drupal_form_submit('system_modules', $form_state);
}