You are here

function hosting_elements in Hosting 5

Implementation of hook_elements.

Defines a number of form elements that are used for formatting the contextual help in forms.

File

./hosting_help.inc, line 450
Hosting help subsystem

Code

function hosting_elements() {
  $type['requirement_help'] = array(
    '#requirement' => NULL,
    '#status' => HOSTING_STATUS_NONE,
    '#heading' => HOSTING_HELP_ENABLED,
    '#summary' => HOSTING_HELP_ENABLED,
    '#summary_prefix' => t("What is this?"),
    '#configuration' => HOSTING_HELP_COLLAPSED,
    '#configuration_prefix' => t("How do I configure this?"),
    '#default_messages' => array(
      HOSTING_STATUS_SUCCESS => t("You have met this requirement."),
      HOSTING_STATUS_WARNING => t("This requirement has a non critical error."),
      HOSTING_STATUS_ERROR => t("This requirement has a critical error. This system will not operate until it has been fixed"),
    ),
    '#process' => array(
      'hosting_requirement_process' => array(),
    ),
  );
  return $type;
}