You are here

function _radioactivity_http_create_pkey_md5 in Radioactivity 5

2 calls to _radioactivity_http_create_pkey_md5()
radioactivity_http_port_edit in plugins/radioactivity_http.module
_radioactivity_http_cb_process in plugins/radioactivity_http.module

File

plugins/radioactivity_http.module, line 309

Code

function _radioactivity_http_create_pkey_md5($method, $params, $pkey) {
  $param_string = '';
  $signature = _radioactivity_http_get_method_signature($method);
  $first = TRUE;
  foreach ($signature as $name) {
    if (!$first) {
      $param_string .= ',';
    }
    $param_string .= $name . '=' . $params[$name];
    $first = FALSE;
  }
  return md5($method . ',' . $param_string . ',' . $pkey);
}