function hosting_task_update_status_form_submit in Hosting 7.4
Same name and namespace in other branches
- 6.2 task/hosting_task.module \hosting_task_update_status_form_submit()
- 7.3 task/hosting_task.module \hosting_task_update_status_form_submit()
Submit handler for the 'update status' button.
File
- task/
hosting_task.module, line 1161 - Web server node type is defined here.
Code
function hosting_task_update_status_form_submit($form, &$form_state) {
hosting_task_update_status($form_state['values']['task']);
if (module_exists('overlay')) {
overlay_close_dialog();
}
if (module_exists('hosting_queued')) {
// Release the hosting_queued lock.
// Cannot use lock release because it uses semaphore value, which only works in a single request.
global $locks;
unset($locks['hosting_queue_tasks_running']);
db_delete('semaphore')
->condition('name', 'hosting_queue_tasks_running')
->execute();
}
}