You are here

function _prod_check_valid_key in Production check & Production monitor 6

Same name and namespace in other branches
  1. 7 prod_check.module \_prod_check_valid_key()

Helper function to check for correct API key.

2 calls to _prod_check_valid_key()
prod_check_get_data in ./prod_check.module
XMLRPC callback function that returns all data of requested checks.
prod_check_get_settings in ./prod_check.module
XMLRPC version of _prod_check_functions() Returnes a keyed array of functions that can be parsed by the reciever into a form or status page.

File

./prod_check.module, line 247

Code

function _prod_check_valid_key($ping_key) {
  $connect_key = variable_get('prod_check_xmlrpc_key', '');
  $result = FALSE;
  if ($connect_key && $ping_key == $connect_key) {
    $result = TRUE;
  }
  return $result;
}