You are here

function background_process_service_unlock in Background Process 6

Same name and namespace in other branches
  1. 7.2 background_process.module \background_process_service_unlock()
  2. 7 background_process.admin.inc \background_process_service_unlock()

Unlock background process.

Parameters

$handle: Handle of process to unlock

1 string reference to 'background_process_service_unlock'
background_process_menu in ./background_process.module
Implements hook_menu().

File

./background_process.admin.inc, line 154

Code

function background_process_service_unlock($handle) {
  if (background_process_unlock($handle)) {
    drupal_set_message(t('Process %handle unlocked', array(
      '%handle' => $handle,
    )));
  }
  else {
    drupal_set_message(t('Process %handle could not be unlocked', array(
      '%handle' => $handle,
    )), 'error');
  }
  drupal_goto();
}