You are here

public function FormAssemblyRequest::getNextForm in FormAssembly 7

Retrieve the HTML for a FormAssembly next path using a returned tfa_next value.

Parameters

string $tfa_next: The urlencoded parameter from of FormAssembly.

Return value

string HTML returned by the query

File

includes/FormAssemblyRequest.php, line 364
Authorizes the current site and handles API requests to FormAssembly.

Class

FormAssemblyRequest
@file Authorizes the current site and handles API requests to FormAssembly.

Code

public function getNextForm($tfa_next) {
  $query_path = urldecode($tfa_next);
  $request_uri = $this->apiHost . '/rest/' . $query_path;
  $response = drupal_http_request($request_uri);
  return $response->data;
}