Skip to content
Snippets Groups Projects
Commit 2a496cb7 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian
Browse files

Add back the _services hook i removed too soon

parent e7c71d71
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,9 @@ include_once('provision.mysql.inc'); ...@@ -15,6 +15,9 @@ include_once('provision.mysql.inc');
* @ingroup provisionui * @ingroup provisionui
* @{ * @{
*/ */
function provision_mysql_provision_service() {
return array("db_server" => t("Mysql database server"));
}
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
......
...@@ -8,6 +8,10 @@ ...@@ -8,6 +8,10 @@
* and all the install api code. * and all the install api code.
*/ */
function provision_drupal_provision_service() {
return array('drupal' => t("Drupal sites"));
}
/** /**
* Test to see if the site settings.php exists * Test to see if the site settings.php exists
* *
......
...@@ -137,7 +137,7 @@ function provision_help_requirements() { ...@@ -137,7 +137,7 @@ function provision_help_requirements() {
foreach ($modules as $module) { foreach ($modules as $module) {
$service = module_invoke($module, 'provision_service'); $service = module_invoke($module, 'provision_service');
$name = current($service); $name = current($service);
$help = module_invoke($module, 'help', 'admin/help/provision#requirements'); $help = module_invoke($module, 'help', 'admin/help/provision#requirements', null);
if ($name && $help) { if ($name && $help) {
$output .= "<a href='requirements-$module'></a><h3>". t($name) .'</h3>'; $output .= "<a href='requirements-$module'></a><h3>". t($name) .'</h3>';
$output .= $help; $output .= $help;
......
...@@ -165,6 +165,10 @@ function _provision_generate_config($data = array()) { ...@@ -165,6 +165,10 @@ function _provision_generate_config($data = array()) {
* @{ * @{
*/ */
function provision_provision_service() {
return array('provision' => t("Basic configuration"));
}
/** /**
* Implementation of hook_menu(). * Implementation of hook_menu().
*/ */
......
...@@ -11,6 +11,10 @@ ...@@ -11,6 +11,10 @@
* to ensure that the sites are getting loaded up correctly. * to ensure that the sites are getting loaded up correctly.
*/ */
function provision_apache_provision_service() {
return array( "web_server" => t("Web Server"));
}
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment