You are here

function hosting_signup_settings in Hosting 5

Menu callback for settings page

1 string reference to 'hosting_signup_settings'
hosting_signup_menu in signup/hosting_signup.module
Implementation of hook_menu

File

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

Code

function hosting_signup_settings() {
  $form['hosting_signup_uri'] = array(
    '#type' => 'textfield',
    '#title' => t('Server URI'),
    '#description' => t('The address of the hostmaster system, in the format http://masterdomain.com'),
    '#default_value' => variable_get('hosting_signup_uri', 'http://' . $_SERVER['HTTP_HOST']),
  );
  $form['hosting_signup_server_key'] = array(
    '#type' => 'textfield',
    '#title' => t('Server key'),
    '#description' => t('A unique identifier used when communicating with the server'),
    '#default_value' => variable_get('hosting_signup_server_key', ''),
  );
  return system_settings_form($form);
}