Commit b26bd76b authored by Steven Jones's avatar Steven Jones

Issue #1299508 by Steven Jones: Added version information.

parent fa755bb5
......@@ -3,4 +3,5 @@ description = Maintain domain aliases for sites.
package = Hosting
dependencies[] = hosting_site
core = 6.x
\ No newline at end of file
core = 6.x
version = HOSTMASTER_VERSION
\ No newline at end of file
......@@ -4,3 +4,4 @@ package = Hosting
dependencies[] = hosting
core = 6.x
version = HOSTMASTER_VERSION
......@@ -5,3 +5,4 @@ dependencies[] = hosting
dependencies[] = hosting_migrate
core = 6.x
version = HOSTMASTER_VERSION
......@@ -2,4 +2,5 @@ name = Hosting Cron
description = Allow the hosting system to cron all the installed sites on a schedule.
package = Hosting
dependencies[] = hosting
core = 6.x
\ No newline at end of file
core = 6.x
version = HOSTMASTER_VERSION
\ No newline at end of file
......@@ -3,4 +3,5 @@ description = Allow Hostmaster to configure database servers.
package = Hosting
dependencies[] = hosting
core = 6.x
\ No newline at end of file
core = 6.x
version = HOSTMASTER_VERSION
\ No newline at end of file
......@@ -4,3 +4,4 @@ package = Hosting
dependencies[] = hosting
core = 6.x
version = HOSTMASTER_VERSION
......@@ -4,3 +4,4 @@ package = Hosting
dependencies[] = hosting
core = 6.x
version = HOSTMASTER_VERSION
......@@ -11,3 +11,4 @@ dependencies[] = modalframe
#dependencies[] = hosting_web_server
core = 6.x
version = HOSTMASTER_VERSION
......@@ -4,6 +4,21 @@
* Install, update and uninstall for the hosting module.
*/
/**
* Implements hook_requirements().
*/
function hosting_requirements($phase) {
$requirements = array();
if ($phase === 'runtime' && defined('HOSTMASTER_VERSION')) {
$requirements['hostmaster'] = array(
'title' => 'Hostmaster (Aegir) version',
'value' => check_plain(HOSTMASTER_VERSION),
'severity' => REQUIREMENT_OK,
);
}
return $requirements;
}
/**
* Implementation of hook_install().
*/
......
<?php
define('HOSTMASTER_VERSION', '6.x-1.x');
/**
* @file
* Hosting module.
*
* Contains just about all the interface magic of hostmaster.
*/
/**
* Not split for performance reasons. Just to keep code together.
*/
......
......@@ -4,4 +4,5 @@ package = Hosting
dependencies[] = hosting
dependencies[] = hosting_site
core = 6.x
\ No newline at end of file
core = 6.x
version = HOSTMASTER_VERSION
\ No newline at end of file
......@@ -3,4 +3,5 @@ description = Allow Hostmaster to keep track which packages have been installed.
package = Hosting
dependencies[] = hosting
core = 6.x
\ No newline at end of file
core = 6.x
version = HOSTMASTER_VERSION
\ No newline at end of file
......@@ -4,4 +4,5 @@ package = Hosting
dependencies[] = hosting
dependencies[] = hosting_package
core = 6.x
\ No newline at end of file
core = 6.x
version = HOSTMASTER_VERSION
\ No newline at end of file
......@@ -5,3 +5,4 @@ dependencies[] = hosting
dependencies[] = hosting_client
core = 6.x
version = HOSTMASTER_VERSION
......@@ -4,3 +4,4 @@ package = Hosting
dependencies[] = hosting
core = 6.x
version = HOSTMASTER_VERSION
......@@ -2,4 +2,5 @@ name = Signup form
description = A simple signup form that allows users to sign up for a new site.
package = Hosting
core = 6.x
\ No newline at end of file
core = 6.x
version = HOSTMASTER_VERSION
\ No newline at end of file
......@@ -3,3 +3,4 @@ description = Allow hostmaster manage hosted sites.
package = Hosting
dependencies[] = hosting
core = 6.x
version = HOSTMASTER_VERSION
......@@ -3,3 +3,4 @@ description = Allow Hostmaster to keep track of tasks that have been processed o
package = Hosting
dependencies[] = hosting
core = 6.x
version = HOSTMASTER_VERSION
......@@ -4,3 +4,4 @@ package = Hosting
dependencies[] = hosting_web_server
core = 6.x
version = HOSTMASTER_VERSION
......@@ -3,4 +3,5 @@ description = Allow hostmaster to configure web servers.
package = Hosting
dependencies[] = hosting
core = 6.x
\ No newline at end of file
core = 6.x
version = HOSTMASTER_VERSION
\ No newline at end of file
......@@ -3,3 +3,4 @@ description = Allow hostmaster to configure NGINX web servers.
package = Hosting
dependencies[] = hosting_web_server
core = 6.x
version = HOSTMASTER_VERSION
......@@ -5,3 +5,4 @@ dependencies[] = hosting_web_server
dependencies[] = hosting_ssl
dependencies[] = hosting_nginx
core = 6.x
version = HOSTMASTER_VERSION
......@@ -5,3 +5,4 @@ dependencies[] = hosting
dependencies[] = hosting_web_server
core = 6.x
version = HOSTMASTER_VERSION
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment