You are here

function key_provider_variable_status in Key 7

1 string reference to 'key_provider_variable_status'
variable.inc in plugins/key_provider/variable.inc
Plugin definition for the Variable key provider.

File

plugins/key_provider/variable.inc, line 86
Plugin definition for the Variable key provider.

Code

function key_provider_variable_status($settings) {
  $key = key_provider_variable_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;
}