You are here

function key_provider_file_status in Key 7

1 string reference to 'key_provider_file_status'
file.inc in plugins/key_provider/file.inc

File

plugins/key_provider/file.inc, line 85

Code

function key_provider_file_status($settings) {
  $key = key_provider_file_get_key($settings);
  if (!empty($key)) {
    $status = array(
      'valid' => KEY_STATUS_VALID,
      'message' => t('Key found'),
    );
  }
  else {
    $status = array(
      'valid' => KEY_STATUS_NOT_VALID,
      'message' => t('Key not found'),
    );
  }
  return $status;
}