You are here

function _patch_manager_status in Patch manager 7

Same name and namespace in other branches
  1. 6 patch_manager.module \_patch_manager_status()

Check status of the patch binary

1 call to _patch_manager_status()
patch_manager_settings_form_validate in ./patch_manager.module
Form submit handler

File

./patch_manager.module, line 465
Patch manager provides developers with tools for managing patches.

Code

function _patch_manager_status($path) {
  if (!$path) {
    $path = variable_get('patch_manager_path_patch', '/usr/bin/patch');
  }
  if (file_exists($path) && is_executable($path)) {
    return TRUE;
  }
  return FALSE;
}