1.20.x installer.pages.inc | installer_browser_installation_reset($project_type = 'module', $reset_type = 'clear') |
Menu callback; Provides the ability to clear the current queue of projects.
Parameters
string $project_type: The project type from which the reset was fired. Either "module", "theme", or "layout".
string $reset_type: Either "clear" (the default) to clear the current list of projects selected to be installed, or "all" to clear both the selected projects and all projects that have been recently installed.
File
- modules/
installer/ installer.pages.inc, line 351 - Page callbacks used by the Installer browse pages.
Code
function installer_browser_installation_reset($project_type = 'module', $reset_type = 'clear') {
module_load_include('inc', 'installer', 'installer.browser');
$include_installed = $reset_type === 'all' ? TRUE : FALSE;
installer_browser_install_queue_clear($include_installed);
backdrop_goto(installer_browser_path($project_type));
}