You are here

function hosting_signup_singleton in Hosting 5

Provide a simple getter/setter for the remote form

This allows us to return the results from submission and validation, where the return values of the function are not returned in any way to the caller.

So instead we set what we want to return with this, and return the output of this from the xmlrpc methods.

4 calls to hosting_signup_singleton()
hosting_signup_submit_form in signup/hosting_signup.module
XMLRPC method for submitting a form
hosting_signup_validate_form in signup/hosting_signup.module
XMLRPC method for validating the form
_hosting_signup_form_submit in signup/hosting_signup.module
Remote form submission
_hosting_signup_form_validate in signup/hosting_signup.module
Remote form validation

File

signup/hosting_signup.module, line 151
Provides a signup form that can be run on remote sites

Code

function hosting_signup_singleton($data = null) {
  static $static = null;
  if ($data) {
    $static = $data;
  }
  return $static;
}