You are here

function _hosting_requirements in Hosting 5

Helper function for displaying contextual help when not used in a form.

4 calls to _hosting_requirements()
hosting_db_server_help in db_server/hosting_db_server.module
Implementation of hook_help().
hosting_help in ./hosting_help.inc
Implementation of hook_help()
hosting_help_requirements in ./hosting_help.inc
Page callback with in depth requirement documentation
hosting_web_server_help in web_server/hosting_web_server.module
Implementation of hook_help().

File

./hosting_help.inc, line 329
Hosting help subsystem

Code

function _hosting_requirements($req, $section = 'all') {
  $item = _element_info('requirement_help');
  $item['#requirement'] = $req;
  $item['#type'] = 'requirement_help';

  /*
   foreach (array('#heading', '#summary', '#suggestion', '#configuration') as $key) {
     if (in_array($section, array('all', $key))) {
       $item['#'. $key] = HOSTING_HELP_ENABLED;
     }
     elseif ($section != 'all') {
       $item['#'. $key] = ($section == $key) ? HOSTING_HELP_ENABLED : HOSTING_HELP_DISABLED;
     }
   }
  */
  $item = hosting_requirement_process($item);
  return theme("requirement_help", $item);
}